text stringlengths 776 20.1k |
|---|
### Task
Generate a SQL query to answer the following question:
`Which state has the highest percentage of fully vaccinated children (12-23 months)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);
CREATE TABL... |
### Task
Generate a SQL query to answer the following question:
`Which state has the lowest percentage of fully vaccinated children?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);
CREATE TABLE healthcare_sta... |
### Task
Generate a SQL query to answer the following question:
`Which state has the highest prevalence of stunting in children under 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);
CREATE TABLE healthcare... |
### Task
Generate a SQL query to answer the following question:
`Which state has the lowest prevalence of wasting in children under 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);
CREATE TABLE healthcare_s... |
### Task
Generate a SQL query to answer the following question:
`Which state has the highest percentage of underweight children?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);
CREATE TABLE healthcare_stats (... |
### Task
Generate a SQL query to answer the following question:
`Which states have a higher percentage of underweight children than stunted children?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);
CREATE TAB... |
### Task
Generate a SQL query to answer the following question:
`Which state has the highest percentage of institutional births?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);
CREATE TABLE healthcare_stats (... |
### Task
Generate a SQL query to answer the following question:
`Which states have institutional birth rates below 50%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);
CREATE TABLE education_stats (state BIGI... |
### Task
Generate a SQL query to answer the following question:
`What is the average rate of institutional births in rural India?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);
CREATE TABLE education_stats (... |
### Task
Generate a SQL query to answer the following question:
`Which state has the highest percentage of mothers who received at least 4 antenatal care visits?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT)... |
### Task
Generate a SQL query to answer the following question:
`Which states have antenatal care coverage below 30%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);
CREATE TABLE healthcare_stats (state BIGIN... |
### Task
Generate a SQL query to answer the following question:
`Which state has the highest percentage of children breastfed within one hour of birth?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);
CREATE T... |
### Task
Generate a SQL query to answer the following question:
`Is obesity more common in urban or rural India?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);
CREATE TABLE healthcare_stats (state BIGINT, tr... |
End of preview. Expand in Data Studio
CenQuery: Indian Census Text-to-SQL Dataset
Project Overview
CenQuery is a specialized Text-to-SQL system designed for Indian Census Data. This dataset was used to fine-tune the defog/llama-3-sqlcoder-8b model using QLoRA to handle complex natural language queries related to demographics, healthcare, and regional statistics.
Dataset Composition
The dataset is split into two primary components to ensure a rigorous evaluation of the model's generalization capabilities:
- Training Set (
old_train_(Mixed).jsonl): 650 instruction-tuned examples covering diverse query patterns and schema joins. - Evaluation Set (
old_eval_(Mixed).jsonl): 150 unseen questions used for final benchmarking and metric calculation (Execution Accuracy and Exact Match).
Schema Information
The queries operate on a relational schema representing several key census sectors:
- Population Stats: Age-wise and gender-wise population data.
- Healthcare Stats: Vaccination and health infrastructure metrics.
- Religion/Language Stats: Distribution of religious groups and linguistic data.
- Crop Stats: Agricultural data including area sown and foodgrain statistics.
Full DDL definitions are provided in the database_schema.json file in this repository.
Prompt Format
The data follows the SQLCoder-8B instruction format:
### Task: The natural language question.### Database Schema: Relevant table DDLs.### SQL: The ground-truth SQL query.
Citation
If using this dataset for research, please cite the CenQuery Project.
- Downloads last month
- 6