{"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Sanskrit in total Goa?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Goa' AND l.name = 'Sanskrit' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 3 have the lowest percentage of stunted children under 5?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.children_under_5_years_who_are_stunted_heightforage18_ AS DOUBLE PRECISION) ASC LIMIT 3;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Malayalam in rural Uttarakhand?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Uttarakhand' AND l.name = 'Malayalam' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of wasted children under 5 in total Mizoram?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_5_years_who_are_wasted_weightforheight18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Mizoram' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many marginal cultivators are there in total Madhya Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.marginal_cultivator_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Madhya Pradesh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Kannada in rural Andhra Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Andhra Pradesh' AND l.name = 'Kannada' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Gujarati in total Lakshadweep?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Lakshadweep' AND l.name = 'Gujarati' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many main agricultural labourers are there in urban Arunachal Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.main_agricultural_labourers_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Arunachal Pradesh' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many household industry workers are there in rural Bihar?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.main_household_industries_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Bihar' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many marginal cultivators are there in total Daman & Diu?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.marginal_cultivator_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Daman & Diu' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of children breastfed within one hour in total Rajasthan?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_age_3_years_breastfed_within_one_hour_of_birt FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Rajasthan' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Normal Area Dafw for Jute?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT normal_area_dafw FROM crop_stats WHERE crop = 'Jute';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of anaemic children in rural Madhya Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_age_659_months_who_are_anaemic_110_gdl22_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Madhya Pradesh' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of households with electricity in urban Bihar?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.pop_living_in_hh_with_electricity_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Bihar' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state have the lowest percentage of fully vaccinated children (12-23 months)?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.children_age_1223_months_fully_vaccinated_based_on_informati AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the percentage of women with high blood sugar higher in Urban or Rural Andhra Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT CASE WHEN (SELECT h.women_age_15_years_and_above_with_high_141160_mgdl_blood_sug FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Andhra Pradesh' AND t.name = 'Urban') > (SELECT h.women_age_15_years_and_above_with_high_141160_mgdl_blood_sug FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Andhra Pradesh' AND t.name = 'Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Urdu in rural Puducherry?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Puducherry' AND l.name = 'Urdu' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the percentage of men with high blood sugar higher in Urban or Rural Chhattisgarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT CASE WHEN (SELECT h.men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Chhattisgarh' AND t.name = 'Urban') > (SELECT h.men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Chhattisgarh' AND t.name = 'Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state have the highest percentage of households with electricity?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.pop_living_in_hh_with_electricity_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of mothers with at least 4 antenatal visits in total Punjab?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Punjab' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state have the lowest percentage of mothers with at least 4 antenatal visits?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of households using clean fuel in urban Andaman & Nicobar Islands?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.hh_using_clean_fuel_for_cooking3_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Andaman & Nicobar Islands' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of fully vaccinated children (12-23 months) in rural Haryana?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_age_1223_months_fully_vaccinated_based_on_informati FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Haryana' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of households with electricity in rural Tripura?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.pop_living_in_hh_with_electricity_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Tripura' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Odia in rural Lakshadweep?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Lakshadweep' AND l.name = 'Odia' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Jain population in urban Kerala?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Kerala' AND rel.religion_name = 'Jain' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 3 have the lowest percentage of wasted children under 5?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.children_under_5_years_who_are_wasted_weightforheight18_ AS DOUBLE PRECISION) ASC LIMIT 3;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of children breastfed within one hour in total Gujarat?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_age_3_years_breastfed_within_one_hour_of_birt FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Gujarat' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Normal Area Dafw for Maize?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT normal_area_dafw FROM crop_stats WHERE crop = 'Maize';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Muslim population in urban Kerala?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Kerala' AND rel.religion_name = 'Muslim' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of women who are literate in urban Chandigarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.women_age_1549_who_are_lit4_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Chandigarh' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Hindu population in rural Dadra & Nagar Haveli?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Dadra & Nagar Haveli' AND rel.religion_name = 'Hindu' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Kannada in rural Maharashtra?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Maharashtra' AND l.name = 'Kannada' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many non-workers are there in rural Lakshadweep?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.non_working_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Lakshadweep' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many household industry workers are there in rural Daman & Diu?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.main_household_industries_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Daman & Diu' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of anaemic children in urban Arunachal Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_age_659_months_who_are_anaemic_110_gdl22_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Arunachal Pradesh' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state have the highest percentage of institutional births?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.institutional_births_in_the_5_years_before_the_survey_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of men with high blood sugar in urban Odisha?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Odisha' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Odia in rural Uttarakhand?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Uttarakhand' AND l.name = 'Odia' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of households using clean fuel in total Chandigarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.hh_using_clean_fuel_for_cooking3_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Chandigarh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Gujarati in urban Tripura?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Tripura' AND l.name = 'Gujarati' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the percentage of wasted children under 5 higher in Urban or Rural Himachal Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT CASE WHEN (SELECT h.children_under_5_years_who_are_wasted_weightforheight18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Himachal Pradesh' AND t.name = 'Urban') > (SELECT h.children_under_5_years_who_are_wasted_weightforheight18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Himachal Pradesh' AND t.name = 'Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 3 have the lowest percentage of children breastfed within one hour?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.children_under_age_3_years_breastfed_within_one_hour_of_birt AS DOUBLE PRECISION) ASC LIMIT 3;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of women with high blood sugar in total Tripura?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.women_age_15_years_and_above_with_high_141160_mgdl_blood_sug FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Tripura' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the percentage of women with mobile phones higher in Urban or Rural Assam?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT CASE WHEN (SELECT h.women_age_1549_years_having_a_mobile_phone_that_they_themsel FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Assam' AND t.name = 'Urban') > (SELECT h.women_age_1549_years_having_a_mobile_phone_that_they_themsel FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Assam' AND t.name = 'Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of women who are literate in urban Chhattisgarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.women_age_1549_who_are_lit4_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Chhattisgarh' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Christian population in total Andaman & Nicobar Islands?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Andaman & Nicobar Islands' AND rel.religion_name = 'Christian' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of women with mobile phones in urban West Bengal?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.women_age_1549_years_having_a_mobile_phone_that_they_themsel FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'West Bengal' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Odia in total Arunachal Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Arunachal Pradesh' AND l.name = 'Odia' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of households using clean fuel in rural Chandigarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.hh_using_clean_fuel_for_cooking3_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Chandigarh' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Sikh population in urban Arunachal Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Arunachal Pradesh' AND rel.religion_name = 'Sikh' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Hindi in total Andhra Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Andhra Pradesh' AND l.name = 'Hindi' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of women with mobile phones in urban Uttar Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.women_age_1549_years_having_a_mobile_phone_that_they_themsel FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Uttar Pradesh' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 5 have the highest percentage of men with high blood sugar?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ AS DOUBLE PRECISION) DESC LIMIT 5;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Christian population in total Meghalaya?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Meghalaya' AND rel.religion_name = 'Christian' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of fully vaccinated children (12-23 months) in total NCT of Delhi?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_age_1223_months_fully_vaccinated_based_on_informati FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'NCT of Delhi' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of women with high blood sugar in rural Puducherry?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.women_age_15_years_and_above_with_high_141160_mgdl_blood_sug FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Puducherry' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of wasted children under 5 in urban Dadra & Nagar Haveli?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_5_years_who_are_wasted_weightforheight18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Dadra & Nagar Haveli' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of underweight children under 5 in urban Jammu & Kashmir?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_5_years_who_are_underweight_weightforage18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Jammu & Kashmir' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of institutional births in rural Madhya Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.institutional_births_in_the_5_years_before_the_survey_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Madhya Pradesh' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the percentage of underweight children under 5 higher in Urban or Rural Odisha?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT CASE WHEN (SELECT h.children_under_5_years_who_are_underweight_weightforage18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Odisha' AND t.name = 'Urban') > (SELECT h.children_under_5_years_who_are_underweight_weightforage18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Odisha' AND t.name = 'Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of institutional births in rural Punjab?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.institutional_births_in_the_5_years_before_the_survey_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Punjab' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the percentage of children breastfed within one hour higher in Urban or Rural Puducherry?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT CASE WHEN (SELECT h.children_under_age_3_years_breastfed_within_one_hour_of_birt FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Puducherry' AND t.name = 'Urban') > (SELECT h.children_under_age_3_years_breastfed_within_one_hour_of_birt FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Puducherry' AND t.name = 'Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Normal Area Dafw for Pulses?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT normal_area_dafw FROM crop_stats WHERE crop = 'Pulses';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many non-workers are there in urban Madhya Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.non_working_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Madhya Pradesh' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of stunted children under 5 in rural Goa?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_5_years_who_are_stunted_heightforage18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Goa' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of women who are literate in rural Puducherry?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.women_age_1549_who_are_lit4_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Puducherry' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of stunted children under 5 in urban Karnataka?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_5_years_who_are_stunted_heightforage18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Karnataka' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the percentage of fully vaccinated children (12-23 months) higher in Urban or Rural Dadra & Nagar Haveli?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT CASE WHEN (SELECT h.children_age_1223_months_fully_vaccinated_based_on_informati FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Dadra & Nagar Haveli' AND t.name = 'Urban') > (SELECT h.children_age_1223_months_fully_vaccinated_based_on_informati FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Dadra & Nagar Haveli' AND t.name = 'Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Telugu in rural Uttarakhand?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Uttarakhand' AND l.name = 'Telugu' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of institutional births in rural Kerala?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.institutional_births_in_the_5_years_before_the_survey_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Kerala' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state have the highest percentage of children breastfed within one hour?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.children_under_age_3_years_breastfed_within_one_hour_of_birt AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Sikh population in rural Dadra & Nagar Haveli?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Dadra & Nagar Haveli' AND rel.religion_name = 'Sikh' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Muslim population in rural Dadra & Nagar Haveli?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Dadra & Nagar Haveli' AND rel.religion_name = 'Muslim' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of stunted children under 5 in urban Meghalaya?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_5_years_who_are_stunted_heightforage18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Meghalaya' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many marginal cultivators are there in rural Punjab?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.marginal_cultivator_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Punjab' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Marathi in total Punjab?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Punjab' AND l.name = 'Marathi' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of households using clean fuel in rural Uttar Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.hh_using_clean_fuel_for_cooking3_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Uttar Pradesh' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many household industry workers are there in total Goa?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.main_household_industries_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Goa' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 3 have the lowest percentage of anaemic children?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.children_age_659_months_who_are_anaemic_110_gdl22_ AS DOUBLE PRECISION) ASC LIMIT 3;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of households with electricity in rural Maharashtra?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.pop_living_in_hh_with_electricity_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Maharashtra' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the percentage of households using clean fuel higher in Urban or Rural Jammu & Kashmir?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT CASE WHEN (SELECT h.hh_using_clean_fuel_for_cooking3_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Jammu & Kashmir' AND t.name = 'Urban') > (SELECT h.hh_using_clean_fuel_for_cooking3_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Jammu & Kashmir' AND t.name = 'Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the percentage of women who are literate higher in Urban or Rural Tamil Nadu?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT CASE WHEN (SELECT h.women_age_1549_who_are_lit4_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Tamil Nadu' AND t.name = 'Urban') > (SELECT h.women_age_1549_who_are_lit4_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Tamil Nadu' AND t.name = 'Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Area Sown 2025 26 for Sugarcane?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT area_sown_2025_26 FROM crop_stats WHERE crop = 'Sugarcane';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Christian population in urban Andhra Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Andhra Pradesh' AND rel.religion_name = 'Christian' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the percentage of children breastfed within one hour higher in Urban or Rural Andhra Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT CASE WHEN (SELECT h.children_under_age_3_years_breastfed_within_one_hour_of_birt FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Andhra Pradesh' AND t.name = 'Urban') > (SELECT h.children_under_age_3_years_breastfed_within_one_hour_of_birt FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Andhra Pradesh' AND t.name = 'Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Area Sown 2025 26 for Oilseeds?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT area_sown_2025_26 FROM crop_stats WHERE crop = 'Oilseeds';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Odia in urban Jammu & Kashmir?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Jammu & Kashmir' AND l.name = 'Odia' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of women who are literate in urban Puducherry?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.women_age_1549_who_are_lit4_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Puducherry' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of children breastfed within one hour in total Daman & Diu?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_age_3_years_breastfed_within_one_hour_of_birt FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Daman & Diu' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Jain population in total Bihar?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Bihar' AND rel.religion_name = 'Jain' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Sikh population in urban Puducherry?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Puducherry' AND rel.religion_name = 'Sikh' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many non-workers are there in total Rajasthan?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.non_working_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Rajasthan' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Area Sown 2025 26 for Rice?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT area_sown_2025_26 FROM crop_stats WHERE crop = 'Rice';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Sikh population in urban Manipur?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Manipur' AND rel.religion_name = 'Sikh' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the percentage of households with electricity higher in Urban or Rural Odisha?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT CASE WHEN (SELECT h.pop_living_in_hh_with_electricity_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Odisha' AND t.name = 'Urban') > (SELECT h.pop_living_in_hh_with_electricity_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Odisha' AND t.name = 'Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Sikh population in rural Tripura?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Tripura' AND rel.religion_name = 'Sikh' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Telugu in total Jharkhand?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Jharkhand' AND l.name = 'Telugu' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Hindu population in rural Lakshadweep?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Lakshadweep' AND rel.religion_name = 'Hindu' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of women who are literate in total Punjab?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.women_age_1549_who_are_lit4_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Punjab' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of women who are literate in total Mizoram?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.women_age_1549_who_are_lit4_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Mizoram' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Sikh population in total Goa?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Goa' AND rel.religion_name = 'Sikh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state have the highest percentage of wasted children under 5?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.children_under_5_years_who_are_wasted_weightforheight18_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Normal Area Dafw for Sugarcane?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT normal_area_dafw FROM crop_stats WHERE crop = 'Sugarcane';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of men with high blood sugar in rural Lakshadweep?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Lakshadweep' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many household industry workers are there in total Jammu & Kashmir?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.main_household_industries_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Jammu & Kashmir' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Sikh population in urban Dadra & Nagar Haveli?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Dadra & Nagar Haveli' AND rel.religion_name = 'Sikh' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 5 have the lowest percentage of underweight children under 5?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.children_under_5_years_who_are_underweight_weightforage18_ AS DOUBLE PRECISION) ASC LIMIT 5;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Urdu in rural Karnataka?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Karnataka' AND l.name = 'Urdu' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of mothers with at least 4 antenatal visits in urban Goa?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Goa' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Hindu population in rural Punjab?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Punjab' AND rel.religion_name = 'Hindu' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the percentage of households with electricity higher in Urban or Rural Dadra & Nagar Haveli?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT CASE WHEN (SELECT h.pop_living_in_hh_with_electricity_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Dadra & Nagar Haveli' AND t.name = 'Urban') > (SELECT h.pop_living_in_hh_with_electricity_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Dadra & Nagar Haveli' AND t.name = 'Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many non-workers are there in urban Gujarat?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.non_working_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Gujarat' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Christian population in urban Chhattisgarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Chhattisgarh' AND rel.religion_name = 'Christian' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Assamese in urban Mizoram?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Mizoram' AND l.name = 'Assamese' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of women who are literate in total Kerala?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.women_age_1549_who_are_lit4_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Kerala' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of households with electricity in total Kerala?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.pop_living_in_hh_with_electricity_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Kerala' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Area Sown 2024 25 for Sugarcane?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT area_sown_2024_25 FROM crop_stats WHERE crop = 'Sugarcane';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many non-workers are there in urban Jammu & Kashmir?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.non_working_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Jammu & Kashmir' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Buddhist population in urban Odisha?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Odisha' AND rel.religion_name = 'Buddhist' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Assamese in rural Assam?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Assam' AND l.name = 'Assamese' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Kannada in urban Kerala?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Kerala' AND l.name = 'Kannada' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 3 have the highest percentage of children breastfed within one hour?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.children_under_age_3_years_breastfed_within_one_hour_of_birt AS DOUBLE PRECISION) DESC LIMIT 3;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Area Sown 2025 26 for Coarse Cereals?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT area_sown_2025_26 FROM crop_stats WHERE crop = 'Coarse Cereals';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Jain population in urban Tripura?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Tripura' AND rel.religion_name = 'Jain' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of mothers with at least 4 antenatal visits in total Chhattisgarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Chhattisgarh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of underweight children under 5 in urban Bihar?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_5_years_who_are_underweight_weightforage18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Bihar' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of households using clean fuel in urban Uttar Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.hh_using_clean_fuel_for_cooking3_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Uttar Pradesh' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the percentage of women with mobile phones higher in Urban or Rural Meghalaya?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT CASE WHEN (SELECT h.women_age_1549_years_having_a_mobile_phone_that_they_themsel FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Meghalaya' AND t.name = 'Urban') > (SELECT h.women_age_1549_years_having_a_mobile_phone_that_they_themsel FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Meghalaya' AND t.name = 'Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Normal Area Dafw for Foodgrains?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT normal_area_dafw FROM crop_stats WHERE crop = 'Foodgrains';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Christian population in rural Arunachal Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Arunachal Pradesh' AND rel.religion_name = 'Christian' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of women who are literate in rural Punjab?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.women_age_1549_who_are_lit4_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Punjab' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of institutional births in rural Daman & Diu?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.institutional_births_in_the_5_years_before_the_survey_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Daman & Diu' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of institutional births in rural Gujarat?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.institutional_births_in_the_5_years_before_the_survey_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Gujarat' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of wasted children under 5 in rural Andaman & Nicobar Islands?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_5_years_who_are_wasted_weightforheight18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Andaman & Nicobar Islands' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Hindu population in rural Gujarat?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Gujarat' AND rel.religion_name = 'Hindu' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 3 have the lowest percentage of women with mobile phones?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.women_age_1549_years_having_a_mobile_phone_that_they_themsel AS DOUBLE PRECISION) ASC LIMIT 3;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 5 have the lowest percentage of women with mobile phones?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.women_age_1549_years_having_a_mobile_phone_that_they_themsel AS DOUBLE PRECISION) ASC LIMIT 5;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Buddhist population in urban Gujarat?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Gujarat' AND rel.religion_name = 'Buddhist' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Kannada in total Madhya Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Madhya Pradesh' AND l.name = 'Kannada' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many non-workers are there in urban West Bengal?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.non_working_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'West Bengal' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of men with high blood sugar in rural Daman & Diu?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Daman & Diu' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many non-workers are there in rural Assam?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.non_working_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Assam' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of fully vaccinated children (12-23 months) in total Haryana?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_age_1223_months_fully_vaccinated_based_on_informati FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Haryana' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state have the lowest percentage of women who are literate?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.women_age_1549_who_are_lit4_ AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of mothers with at least 4 antenatal visits in rural Maharashtra?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Maharashtra' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Malayalam in rural Dadra & Nagar Haveli?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Dadra & Nagar Haveli' AND l.name = 'Malayalam' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many main agricultural labourers are there in rural Chhattisgarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.main_agricultural_labourers_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Chhattisgarh' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of underweight children under 5 in rural NCT of Delhi?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_5_years_who_are_underweight_weightforage18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'NCT of Delhi' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Assamese in rural NCT of Delhi?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'NCT of Delhi' AND l.name = 'Assamese' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many main agricultural labourers are there in urban Lakshadweep?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.main_agricultural_labourers_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Lakshadweep' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Normal Area Dafw for Coarse Cereals?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT normal_area_dafw FROM crop_stats WHERE crop = 'Coarse Cereals';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Telugu in urban Sikkim?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Sikkim' AND l.name = 'Telugu' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of underweight children under 5 in total Gujarat?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_5_years_who_are_underweight_weightforage18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Gujarat' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of women who are literate in rural West Bengal?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.women_age_1549_who_are_lit4_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'West Bengal' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of women with mobile phones in urban Maharashtra?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.women_age_1549_years_having_a_mobile_phone_that_they_themsel FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Maharashtra' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of stunted children under 5 in rural Manipur?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_5_years_who_are_stunted_heightforage18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Manipur' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state have the lowest percentage of wasted children under 5?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.children_under_5_years_who_are_wasted_weightforheight18_ AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Christian population in urban Daman & Diu?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Daman & Diu' AND rel.religion_name = 'Christian' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of men with high blood sugar in rural Mizoram?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Mizoram' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Buddhist population in urban NCT of Delhi?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'NCT of Delhi' AND rel.religion_name = 'Buddhist' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many household industry workers are there in rural Dadra & Nagar Haveli?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.main_household_industries_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Dadra & Nagar Haveli' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Bengali in urban Gujarat?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Gujarat' AND l.name = 'Bengali' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Jain population in total Chandigarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Chandigarh' AND rel.religion_name = 'Jain' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many marginal cultivators are there in total NCT of Delhi?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.marginal_cultivator_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'NCT of Delhi' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many main agricultural labourers are there in urban NCT of Delhi?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.main_agricultural_labourers_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'NCT of Delhi' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of children breastfed within one hour in rural Chhattisgarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_age_3_years_breastfed_within_one_hour_of_birt FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Chhattisgarh' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of mothers with at least 4 antenatal visits in rural Puducherry?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Puducherry' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Sikh population in rural Chhattisgarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Chhattisgarh' AND rel.religion_name = 'Sikh' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of mothers with at least 4 antenatal visits in total Uttarakhand?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Uttarakhand' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many household industry workers are there in rural Chandigarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.main_household_industries_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Chandigarh' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 3 have the highest percentage of men with high blood sugar?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ AS DOUBLE PRECISION) DESC LIMIT 3;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Urdu in rural NCT of Delhi?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'NCT of Delhi' AND l.name = 'Urdu' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Maithili in rural Himachal Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Himachal Pradesh' AND l.name = 'Maithili' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many non-workers are there in total Uttar Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.non_working_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Uttar Pradesh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Buddhist population in urban Dadra & Nagar Haveli?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Dadra & Nagar Haveli' AND rel.religion_name = 'Buddhist' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Sikh population in total Nagaland?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Nagaland' AND rel.religion_name = 'Sikh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the percentage of wasted children under 5 higher in Urban or Rural Odisha?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT CASE WHEN (SELECT h.children_under_5_years_who_are_wasted_weightforheight18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Odisha' AND t.name = 'Urban') > (SELECT h.children_under_5_years_who_are_wasted_weightforheight18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Odisha' AND t.name = 'Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many marginal cultivators are there in total Manipur?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.marginal_cultivator_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Manipur' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Hindu population in total Madhya Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Madhya Pradesh' AND rel.religion_name = 'Hindu' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many marginal cultivators are there in urban Tripura?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.marginal_cultivator_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Tripura' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of anaemic children in rural West Bengal?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_age_659_months_who_are_anaemic_110_gdl22_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'West Bengal' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Odia in urban Andaman & Nicobar Islands?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Andaman & Nicobar Islands' AND l.name = 'Odia' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many main agricultural labourers are there in total Maharashtra?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.main_agricultural_labourers_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Maharashtra' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of wasted children under 5 in total Jharkhand?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_5_years_who_are_wasted_weightforheight18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Jharkhand' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of men with high blood sugar in total Chhattisgarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Chhattisgarh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of anaemic children in total Himachal Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_age_659_months_who_are_anaemic_110_gdl22_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Himachal Pradesh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Assamese in total Sikkim?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Sikkim' AND l.name = 'Assamese' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the percentage of stunted children under 5 higher in Urban or Rural Mizoram?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT CASE WHEN (SELECT h.children_under_5_years_who_are_stunted_heightforage18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Mizoram' AND t.name = 'Urban') > (SELECT h.children_under_5_years_who_are_stunted_heightforage18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Mizoram' AND t.name = 'Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of mothers with at least 4 antenatal visits in total Andhra Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Andhra Pradesh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of women with mobile phones in urban Uttarakhand?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.women_age_1549_years_having_a_mobile_phone_that_they_themsel FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Uttarakhand' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Sanskrit in total Chandigarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Chandigarh' AND l.name = 'Sanskrit' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Christian population in total Gujarat?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Gujarat' AND rel.religion_name = 'Christian' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of mothers with at least 4 antenatal visits in total Rajasthan?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Rajasthan' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Punjabi in rural Karnataka?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Karnataka' AND l.name = 'Punjabi' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Muslim population in rural Haryana?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Haryana' AND rel.religion_name = 'Muslim' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak English in urban Arunachal Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Arunachal Pradesh' AND l.name = 'English' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Hindu population in urban Nagaland?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Nagaland' AND rel.religion_name = 'Hindu' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many household industry workers are there in rural Kerala?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.main_household_industries_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Kerala' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state have the highest percentage of women who are literate?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.women_age_1549_who_are_lit4_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Sikh population in urban Daman & Diu?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Daman & Diu' AND rel.religion_name = 'Sikh' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of women who are literate in urban Tamil Nadu?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.women_age_1549_who_are_lit4_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Tamil Nadu' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of households using clean fuel in total Jharkhand?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.hh_using_clean_fuel_for_cooking3_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Jharkhand' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 5 have the lowest percentage of men with high blood sugar?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ AS DOUBLE PRECISION) ASC LIMIT 5;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 5 have the highest percentage of anaemic children?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.children_age_659_months_who_are_anaemic_110_gdl22_ AS DOUBLE PRECISION) DESC LIMIT 5;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Area Sown 2024 25 for Wheat?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT area_sown_2024_25 FROM crop_stats WHERE crop = 'Wheat';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of women who are literate in rural Daman & Diu?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.women_age_1549_who_are_lit4_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Daman & Diu' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of households with electricity in urban Madhya Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.pop_living_in_hh_with_electricity_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Madhya Pradesh' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of women with high blood sugar in urban Lakshadweep?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.women_age_15_years_and_above_with_high_141160_mgdl_blood_sug FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Lakshadweep' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Buddhist population in total Manipur?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Manipur' AND rel.religion_name = 'Buddhist' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 5 have the lowest percentage of households with electricity?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.pop_living_in_hh_with_electricity_ AS DOUBLE PRECISION) ASC LIMIT 5;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Sikh population in urban Bihar?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Bihar' AND rel.religion_name = 'Sikh' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak English in rural Manipur?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Manipur' AND l.name = 'English' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Buddhist population in total Gujarat?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Gujarat' AND rel.religion_name = 'Buddhist' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of women with high blood sugar in total Assam?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.women_age_15_years_and_above_with_high_141160_mgdl_blood_sug FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Assam' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Sanskrit in rural Sikkim?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Sikkim' AND l.name = 'Sanskrit' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of anaemic children in urban Punjab?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_age_659_months_who_are_anaemic_110_gdl22_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Punjab' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Bengali in total West Bengal?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'West Bengal' AND l.name = 'Bengali' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many household industry workers are there in urban Tamil Nadu?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.main_household_industries_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Tamil Nadu' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many non-workers are there in rural Maharashtra?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.non_working_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Maharashtra' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of households with electricity in rural NCT of Delhi?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.pop_living_in_hh_with_electricity_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'NCT of Delhi' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Kannada in rural Arunachal Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Arunachal Pradesh' AND l.name = 'Kannada' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Jain population in total Tripura?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Tripura' AND rel.religion_name = 'Jain' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of women with mobile phones in rural Nagaland?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.women_age_1549_years_having_a_mobile_phone_that_they_themsel FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Nagaland' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of children breastfed within one hour in total Mizoram?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_age_3_years_breastfed_within_one_hour_of_birt FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Mizoram' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Area Sown 2024 25 for Coarse Cereals?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT area_sown_2024_25 FROM crop_stats WHERE crop = 'Coarse Cereals';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of children breastfed within one hour in total NCT of Delhi?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_age_3_years_breastfed_within_one_hour_of_birt FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'NCT of Delhi' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of mothers with at least 4 antenatal visits in urban Uttarakhand?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Uttarakhand' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Telugu in rural West Bengal?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'West Bengal' AND l.name = 'Telugu' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Christian population in rural Tripura?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Tripura' AND rel.religion_name = 'Christian' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the percentage of institutional births higher in Urban or Rural Nagaland?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT CASE WHEN (SELECT h.institutional_births_in_the_5_years_before_the_survey_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Nagaland' AND t.name = 'Urban') > (SELECT h.institutional_births_in_the_5_years_before_the_survey_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Nagaland' AND t.name = 'Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state have the lowest percentage of institutional births?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.institutional_births_in_the_5_years_before_the_survey_ AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Urdu in rural Uttarakhand?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Uttarakhand' AND l.name = 'Urdu' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Area Sown 2025 26 for Maize?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT area_sown_2025_26 FROM crop_stats WHERE crop = 'Maize';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of children breastfed within one hour in urban Andhra Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_age_3_years_breastfed_within_one_hour_of_birt FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Andhra Pradesh' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many non-workers are there in total Chhattisgarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.non_working_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Chhattisgarh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many main agricultural labourers are there in rural Uttarakhand?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.main_agricultural_labourers_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Uttarakhand' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Area Sown 2025 26 for Wheat?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT area_sown_2025_26 FROM crop_stats WHERE crop = 'Wheat';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 3 have the lowest percentage of fully vaccinated children (12-23 months)?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.children_age_1223_months_fully_vaccinated_based_on_informati AS DOUBLE PRECISION) ASC LIMIT 3;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of wasted children under 5 in total Maharashtra?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_5_years_who_are_wasted_weightforheight18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Maharashtra' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Maithili in total Lakshadweep?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Lakshadweep' AND l.name = 'Maithili' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of households with electricity in rural Assam?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.pop_living_in_hh_with_electricity_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Assam' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many marginal cultivators are there in urban Dadra & Nagar Haveli?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.marginal_cultivator_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Dadra & Nagar Haveli' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of men with high blood sugar in urban Sikkim?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Sikkim' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many marginal cultivators are there in urban Himachal Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.marginal_cultivator_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Himachal Pradesh' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of households with electricity in rural Mizoram?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.pop_living_in_hh_with_electricity_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Mizoram' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 5 have the lowest percentage of wasted children under 5?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.children_under_5_years_who_are_wasted_weightforheight18_ AS DOUBLE PRECISION) ASC LIMIT 5;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many household industry workers are there in rural Uttarakhand?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.main_household_industries_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Uttarakhand' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of households with electricity in urban Lakshadweep?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.pop_living_in_hh_with_electricity_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Lakshadweep' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Christian population in rural Haryana?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Haryana' AND rel.religion_name = 'Christian' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the percentage of mothers with at least 4 antenatal visits higher in Urban or Rural Punjab?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT CASE WHEN (SELECT h.mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Punjab' AND t.name = 'Urban') > (SELECT h.mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Punjab' AND t.name = 'Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of fully vaccinated children (12-23 months) in total Jharkhand?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_age_1223_months_fully_vaccinated_based_on_informati FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Jharkhand' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Hindu population in urban Tripura?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Tripura' AND rel.religion_name = 'Hindu' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak English in total Lakshadweep?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Lakshadweep' AND l.name = 'English' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Sikh population in total Rajasthan?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Rajasthan' AND rel.religion_name = 'Sikh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of anaemic children in total Chhattisgarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_age_659_months_who_are_anaemic_110_gdl22_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Chhattisgarh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many main agricultural labourers are there in rural Puducherry?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.main_agricultural_labourers_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Puducherry' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the percentage of men with high blood sugar higher in Urban or Rural Andhra Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT CASE WHEN (SELECT h.men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Andhra Pradesh' AND t.name = 'Urban') > (SELECT h.men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Andhra Pradesh' AND t.name = 'Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Area Sown 2025 26 for Nutri Cereals?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT area_sown_2025_26 FROM crop_stats WHERE crop = 'Nutri Cereals';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Punjabi in total Nagaland?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Nagaland' AND l.name = 'Punjabi' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Sikh population in urban Goa?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Goa' AND rel.religion_name = 'Sikh' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Jain population in urban Bihar?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Bihar' AND rel.religion_name = 'Jain' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 3 have the lowest percentage of mothers with at least 4 antenatal visits?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi AS DOUBLE PRECISION) ASC LIMIT 3;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Odia in urban Chandigarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Chandigarh' AND l.name = 'Odia' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Buddhist population in rural Arunachal Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Arunachal Pradesh' AND rel.religion_name = 'Buddhist' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of women with mobile phones in rural Manipur?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.women_age_1549_years_having_a_mobile_phone_that_they_themsel FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Manipur' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 3 have the lowest percentage of households with electricity?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.pop_living_in_hh_with_electricity_ AS DOUBLE PRECISION) ASC LIMIT 3;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the percentage of underweight children under 5 higher in Urban or Rural Chandigarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT CASE WHEN (SELECT h.children_under_5_years_who_are_underweight_weightforage18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Chandigarh' AND t.name = 'Urban') > (SELECT h.children_under_5_years_who_are_underweight_weightforage18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Chandigarh' AND t.name = 'Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of underweight children under 5 in total Puducherry?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_5_years_who_are_underweight_weightforage18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Puducherry' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 5 have the lowest percentage of women who are literate?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.women_age_1549_who_are_lit4_ AS DOUBLE PRECISION) ASC LIMIT 5;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Normal Area Dafw for Rice?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT normal_area_dafw FROM crop_stats WHERE crop = 'Rice';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Area Sown 2025 26 for Pulses?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT area_sown_2025_26 FROM crop_stats WHERE crop = 'Pulses';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of men with high blood sugar in urban Uttarakhand?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Uttarakhand' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Punjabi in rural Goa?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Goa' AND l.name = 'Punjabi' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of underweight children under 5 in total Chandigarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_5_years_who_are_underweight_weightforage18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Chandigarh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many marginal cultivators are there in total Maharashtra?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.marginal_cultivator_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Maharashtra' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 5 have the lowest percentage of fully vaccinated children (12-23 months)?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.children_age_1223_months_fully_vaccinated_based_on_informati AS DOUBLE PRECISION) ASC LIMIT 5;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many marginal cultivators are there in total Punjab?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.marginal_cultivator_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Punjab' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many non-workers are there in total Puducherry?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.non_working_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Puducherry' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 3 have the highest percentage of wasted children under 5?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.children_under_5_years_who_are_wasted_weightforheight18_ AS DOUBLE PRECISION) DESC LIMIT 3;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state have the highest percentage of stunted children under 5?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.children_under_5_years_who_are_stunted_heightforage18_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of children breastfed within one hour in total Uttar Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_age_3_years_breastfed_within_one_hour_of_birt FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Uttar Pradesh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of fully vaccinated children (12-23 months) in rural Meghalaya?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_age_1223_months_fully_vaccinated_based_on_informati FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Meghalaya' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of wasted children under 5 in urban Uttarakhand?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_5_years_who_are_wasted_weightforheight18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Uttarakhand' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the percentage of men with high blood sugar higher in Urban or Rural Assam?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT CASE WHEN (SELECT h.men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Assam' AND t.name = 'Urban') > (SELECT h.men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Assam' AND t.name = 'Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state have the highest percentage of anaemic children?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.children_age_659_months_who_are_anaemic_110_gdl22_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of fully vaccinated children (12-23 months) in urban Puducherry?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_age_1223_months_fully_vaccinated_based_on_informati FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Puducherry' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the percentage of men with high blood sugar higher in Urban or Rural Jharkhand?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT CASE WHEN (SELECT h.men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Jharkhand' AND t.name = 'Urban') > (SELECT h.men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Jharkhand' AND t.name = 'Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 3 have the lowest percentage of underweight children under 5?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.children_under_5_years_who_are_underweight_weightforage18_ AS DOUBLE PRECISION) ASC LIMIT 3;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Telugu in urban Maharashtra?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Maharashtra' AND l.name = 'Telugu' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state have the lowest percentage of women with high blood sugar?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.women_age_15_years_and_above_with_high_141160_mgdl_blood_sug AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Telugu in total Puducherry?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Puducherry' AND l.name = 'Telugu' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of children breastfed within one hour in urban Mizoram?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_age_3_years_breastfed_within_one_hour_of_birt FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Mizoram' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of institutional births in total Chandigarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.institutional_births_in_the_5_years_before_the_survey_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Chandigarh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Christian population in urban Tamil Nadu?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Tamil Nadu' AND rel.religion_name = 'Christian' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Area Sown 2024 25 for Rice?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT area_sown_2024_25 FROM crop_stats WHERE crop = 'Rice';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Malayalam in urban Himachal Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Himachal Pradesh' AND l.name = 'Malayalam' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of children breastfed within one hour in urban Daman & Diu?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_age_3_years_breastfed_within_one_hour_of_birt FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Daman & Diu' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of wasted children under 5 in urban Goa?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_5_years_who_are_wasted_weightforheight18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Goa' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Christian population in urban Jharkhand?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Jharkhand' AND rel.religion_name = 'Christian' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of households using clean fuel in rural Madhya Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.hh_using_clean_fuel_for_cooking3_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Madhya Pradesh' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 5 have the highest percentage of mothers with at least 4 antenatal visits?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi AS DOUBLE PRECISION) DESC LIMIT 5;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 5 have the lowest percentage of women with high blood sugar?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.women_age_15_years_and_above_with_high_141160_mgdl_blood_sug AS DOUBLE PRECISION) ASC LIMIT 5;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many household industry workers are there in urban Jharkhand?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.main_household_industries_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Jharkhand' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of children breastfed within one hour in urban Assam?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_age_3_years_breastfed_within_one_hour_of_birt FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Assam' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Sikh population in total Daman & Diu?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Daman & Diu' AND rel.religion_name = 'Sikh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Muslim population in rural Daman & Diu?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Daman & Diu' AND rel.religion_name = 'Muslim' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state have the highest percentage of underweight children under 5?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.children_under_5_years_who_are_underweight_weightforage18_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Buddhist population in urban Maharashtra?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Maharashtra' AND rel.religion_name = 'Buddhist' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Muslim population in rural Uttar Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Uttar Pradesh' AND rel.religion_name = 'Muslim' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many main agricultural labourers are there in rural Goa?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.main_agricultural_labourers_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Goa' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Christian population in total Nagaland?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Nagaland' AND rel.religion_name = 'Christian' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Christian population in rural Kerala?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Kerala' AND rel.religion_name = 'Christian' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of wasted children under 5 in rural Madhya Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_5_years_who_are_wasted_weightforheight18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Madhya Pradesh' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many main agricultural labourers are there in total Rajasthan?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.main_agricultural_labourers_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Rajasthan' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Area Sown 2024 25 for Foodgrains?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT area_sown_2024_25 FROM crop_stats WHERE crop = 'Foodgrains';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Muslim population in total Chhattisgarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Chhattisgarh' AND rel.religion_name = 'Muslim' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Gujarati in total Uttarakhand?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Uttarakhand' AND l.name = 'Gujarati' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Kannada in rural Chandigarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Chandigarh' AND l.name = 'Kannada' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Assamese in total West Bengal?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'West Bengal' AND l.name = 'Assamese' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 3 have the highest percentage of underweight children under 5?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.children_under_5_years_who_are_underweight_weightforage18_ AS DOUBLE PRECISION) DESC LIMIT 3;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of mothers with at least 4 antenatal visits in urban Gujarat?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Gujarat' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Maithili in rural Haryana?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Haryana' AND l.name = 'Maithili' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of anaemic children in rural Arunachal Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_age_659_months_who_are_anaemic_110_gdl22_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Arunachal Pradesh' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Area Sown 2025 26 for Jute?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT area_sown_2025_26 FROM crop_stats WHERE crop = 'Jute';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state have the highest percentage of women with high blood sugar?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.women_age_15_years_and_above_with_high_141160_mgdl_blood_sug AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Sanskrit in urban Daman & Diu?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Daman & Diu' AND l.name = 'Sanskrit' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of institutional births in urban Jammu & Kashmir?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.institutional_births_in_the_5_years_before_the_survey_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Jammu & Kashmir' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Sikh population in urban Assam?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Assam' AND rel.religion_name = 'Sikh' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Normal Area Dafw for Oilseeds?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT normal_area_dafw FROM crop_stats WHERE crop = 'Oilseeds';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of children breastfed within one hour in urban Jharkhand?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_age_3_years_breastfed_within_one_hour_of_birt FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Jharkhand' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 3 have the lowest percentage of men with high blood sugar?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ AS DOUBLE PRECISION) ASC LIMIT 3;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of children breastfed within one hour in urban Uttar Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_age_3_years_breastfed_within_one_hour_of_birt FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Uttar Pradesh' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of children breastfed within one hour in total Puducherry?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_age_3_years_breastfed_within_one_hour_of_birt FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Puducherry' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of wasted children under 5 in total Odisha?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_under_5_years_who_are_wasted_weightforheight18_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Odisha' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of women with high blood sugar in urban West Bengal?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.women_age_15_years_and_above_with_high_141160_mgdl_blood_sug FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'West Bengal' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of mothers with at least 4 antenatal visits in total Karnataka?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Karnataka' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of anaemic children in urban NCT of Delhi?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_age_659_months_who_are_anaemic_110_gdl22_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'NCT of Delhi' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 3 have the highest percentage of women with mobile phones?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.women_age_1549_years_having_a_mobile_phone_that_they_themsel AS DOUBLE PRECISION) DESC LIMIT 3;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Bengali in rural Jharkhand?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Jharkhand' AND l.name = 'Bengali' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many main agricultural labourers are there in rural Arunachal Pradesh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE education_stats (state BIGINT, no_of_households BIGINT, total_person BIGINT, total_male BIGINT, total_female BIGINT, population_in_the_age_group_06_person BIGINT, population_in_the_age_group_06_male BIGINT, population_in_the_age_group_06_female BIGINT, scheduled_castes_person BIGINT, scheduled_castes_male BIGINT, scheduled_castes_populationfemale BIGINT, scheduled_tribes_person BIGINT, scheduled_tribes_male BIGINT, scheduled_tribes_female BIGINT, literates_person BIGINT, literates_male BIGINT, literates_female BIGINT, illiterate_persons BIGINT, illiterate_male BIGINT, illiterate_female BIGINT, total_worker_person BIGINT, total_worker_male BIGINT, total_worker_female BIGINT, main_working_person BIGINT, main_working_male BIGINT, main_working_female BIGINT, main_cultivator_person BIGINT, main_cultivator_male BIGINT, main_cultivator_female BIGINT, main_agricultural_labourers_person BIGINT, main_agricultural_labourers_male BIGINT, main_agricultural_labourers_female BIGINT, main_household_industries_person BIGINT, main_household_industries_male BIGINT, main_household_industries_female BIGINT, main_other_workers_person BIGINT, main_other_workers_male BIGINT, main_other_workers_female BIGINT, marginal_worker_person BIGINT, marginal_worker_male BIGINT, marginal_worker_female BIGINT, marginal_cultivator_person BIGINT, marginal_cultivator_male BIGINT, marginal_cultivator_female BIGINT, marginal_agriculture_labourers_person BIGINT, marginal_agriculture_labourers_male BIGINT, marginal_agriculture_labourers_female BIGINT, marginal_household_industries_person BIGINT, marginal_household_industries_male BIGINT, marginal_household_industries_female BIGINT, marginal_other_workers_person BIGINT, marginal_other_workers_male BIGINT, marginal_other_workers_female BIGINT, marginal_worker_population_3_6_person BIGINT, marginal_worker_population_3_6_male BIGINT, marginal_worker_population_3_6_female BIGINT, marginal_cultivator_population_3_6_person BIGINT, marginal_cultivator_population_3_6_male BIGINT, marginal_cultivator_population_3_6_female BIGINT, marginal_agriculture_labourers_population_3_6_person BIGINT, marginal_agriculture_labourers_population_3_6_male BIGINT, marginal_agriculture_labourers_population_3_6_female BIGINT, marginal_household_industries_population_3_6_person BIGINT, marginal_household_industries_population_3_6_male BIGINT, marginal_household_industries_population_36_female BIGINT, marginal_other_workers_person_3_6_person BIGINT, marginal_other_workers_person_3_6_male BIGINT, marginal_other_workers_person_3_6_female BIGINT, marginal_worker_population_0_3_person BIGINT, marginal_worker_population_0_3_male BIGINT, marginal_worker_population_0_3_female BIGINT, marginal_cultivator_population_0_3_person BIGINT, marginal_cultivator_population_0_3_male BIGINT, marginal_cultivator_population_0_3_female BIGINT, marginal_agriculture_labourers_population_0_3_person BIGINT, marginal_agriculture_labourers_population_0_3_male BIGINT, marginal_agriculture_labourers_population_0_3_female BIGINT, marginal_household_industries_population_0_3_person BIGINT, marginal_household_industries_population_0_3_male BIGINT, marginal_household_industries_population_0_3_female BIGINT, marginal_other_workers_population_0_3_person BIGINT, marginal_other_workers_population_0_3_male BIGINT, marginal_other_workers_population_0_3_female BIGINT, non_working_person BIGINT, non_working_male BIGINT, non_working_female BIGINT, tru_id BIGINT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE occupation_stats (state BIGINT, tru_id BIGINT, age_group_id BIGINT, population_total BIGINT, population_male BIGINT, population_female BIGINT, main_workers_total BIGINT, main_workers_male BIGINT, main_workers_female BIGINT, marginal_workers_total BIGINT, marginal_workers_male BIGINT, marginal_workers_female BIGINT, marg_3_6mo_total BIGINT, marg_3_6mo_male BIGINT, marg_3_6mo_female BIGINT, marg_less_3mo_total BIGINT, marg_less_3mo_male BIGINT, marg_less_3mo_female BIGINT, non_workers_total BIGINT, non_workers_male BIGINT, non_workers_female BIGINT, seeking_work_total BIGINT, seeking_work_male BIGINT, seeking_work_female BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT e.main_agricultural_labourers_person FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE r.area_name = 'Arunachal Pradesh' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Telugu in rural Puducherry?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Puducherry' AND l.name = 'Telugu' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Area Sown 2024 25 for Jute?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT area_sown_2024_25 FROM crop_stats WHERE crop = 'Jute';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak English in total Odisha?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ls.person FROM language_stats ls JOIN regions r ON ls.state = r.state JOIN languages l ON ls.language_id = l.id JOIN tru t ON ls.tru_id = t.id WHERE r.area_name = 'Odisha' AND l.name = 'English' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Muslim population in total Nagaland?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT rs.tot_p FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN religions rel ON rs.religion_id = rel.id JOIN tru t ON rs.tru_id = t.id WHERE r.area_name = 'Nagaland' AND rel.religion_name = 'Muslim' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which top 5 have the highest percentage of institutional births?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total' ORDER BY CAST(h.institutional_births_in_the_5_years_before_the_survey_ AS DOUBLE PRECISION) DESC LIMIT 5;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the percentage of households with electricity higher in Urban or Rural Haryana?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT CASE WHEN (SELECT h.pop_living_in_hh_with_electricity_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Haryana' AND t.name = 'Urban') > (SELECT h.pop_living_in_hh_with_electricity_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Haryana' AND t.name = 'Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of households using clean fuel in total Chhattisgarh?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.hh_using_clean_fuel_for_cooking3_ FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Chhattisgarh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of fully vaccinated children (12-23 months) in total Rajasthan?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE healthcare_stats (state BIGINT, tru_id BIGINT, number_of_hh_surveyed BIGINT, number_of_women_15_49_interviewed BIGINT, number_of_men_15_54_interviewed BIGINT, female_pop_age_6_years_and_above_who_ever_school_ DOUBLE PRECISION, pop_below_age_15_years_ DOUBLE PRECISION, sex_ratio_of_the_total_pop_females_per_1000_males DOUBLE PRECISION, sex_ratio_at_birth_for_children_born_in_the_last_five_years_ TEXT, child_u5_whose_birth_was_registered_with_the_civil_authority TEXT, deaths_in_the_last_3_years_registered_with_the_civil_authori TEXT, pop_living_in_hh_with_electricity_ DOUBLE PRECISION, pop_living_in_hh_with_an_improved_drinkingwater_source1_ DOUBLE PRECISION, pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DOUBLE PRECISION, hh_using_clean_fuel_for_cooking3_ TEXT, hh_using_iodized_salt_ TEXT, hh_with_any_usual_member_covered_under_a_health_insurancefin TEXT, children_age_5_years_who_attended_preprimary_school_during_t TEXT, women_age_1549_who_are_lit4_ DOUBLE PRECISION, men_age_1549_who_are_lit4_ TEXT, women_age_1549_with_10_or_more_years_of_schooling_ DOUBLE PRECISION, men_age_1549_with_10_or_more_years_of_schooling_ TEXT, women_age_1549_who_have_ever_used_the_internet_ TEXT, men_age_1549_who_have_ever_used_the_internet_ TEXT, women_age_2024_years_married_before_age_18_years_ TEXT, men_age_2529_years_married_before_age_21_years_ TEXT, total_fertility_rate_number_of_children_per_woman TEXT, women_age_1519_years_who_were_already_mothers_or_pregnant_at TEXT, adolescent_fertility_rate_for_women_age_1519_years5 DOUBLE PRECISION, neonatal_mortality_rate_per_1000_live_births TEXT, infant_mortality_rate_per_1000_live_births TEXT, underfive_mortality_rate_per_1000_live_births TEXT, current_use_of_family_planning_methods_currently_married_wom TEXT, current_use_of_family_planning_methods_currently_married_wom.1 TEXT, current_use_of_family_planning_methods_currently_married_wom.2 TEXT, current_use_of_family_planning_methods_currently_married_wom.3 TEXT, current_use_of_family_planning_methods_currently_married_wom.4 TEXT, current_use_of_family_planning_methods_currently_married_wom.5 TEXT, current_use_of_family_planning_methods_currently_married_wom.6 TEXT, current_use_of_family_planning_methods_currently_married_wom.7 TEXT, current_use_of_family_planning_methods_currently_married_wom.8 TEXT, current_use_of_family_planning_methods_currently_married_wom.9 TEXT, current_use_of_family_planning_methods_currently_married_wom.10 TEXT, current_use_of_family_planning_methods_currently_married_wom.11 TEXT, current_use_of_family_planning_methods_currently_married_wom.12 TEXT, current_use_of_family_planning_methods_currently_married_wom.13 TEXT, current_use_of_family_planning_methods_currently_married_wom.14 TEXT, current_use_of_family_planning_methods_currently_married_wom.15 TEXT, current_use_of_family_planning_methods_currently_married_wom.16 TEXT, current_use_of_family_planning_methods_currently_married_wom.17 TEXT, current_use_of_family_planning_methods_currently_married_wom.18 TEXT, current_use_of_family_planning_methods_currently_married_wom.19 TEXT, current_use_of_family_planning_methods_currently_married_wom.20 TEXT, current_use_of_family_planning_methods_currently_married_wom.21 TEXT, current_use_of_family_planning_methods_currently_married_wom.22 TEXT, current_use_of_family_planning_methods_currently_married_wom.23 TEXT, current_use_of_family_planning_methods_currently_married_wom.24 TEXT, current_use_of_family_planning_methods_currently_married_wom.25 TEXT, current_use_of_family_planning_methods_currently_married_wom.26 TEXT, current_use_of_family_planning_methods_currently_married_wom.27 TEXT, current_use_of_family_planning_methods_currently_married_wom.28 TEXT, current_use_of_family_planning_methods_currently_married_wom.29 TEXT, current_use_of_family_planning_methods_currently_married_wom.30 TEXT, current_use_of_family_planning_methods_currently_married_wom.31 TEXT, current_use_of_family_planning_methods_currently_married_wom.32 TEXT, current_use_of_family_planning_methods_currently_married_wom.33 TEXT, current_use_of_family_planning_methods_currently_married_wom.34 TEXT, current_use_of_family_planning_methods_currently_married_wom.35 TEXT, current_use_of_family_planning_methods_currently_married_wom.36 TEXT, current_use_of_family_planning_methods_currently_married_wom.37 TEXT, current_use_of_family_planning_methods_currently_married_wom.38 TEXT, current_use_of_family_planning_methods_currently_married_wom.39 TEXT, current_use_of_family_planning_methods_currently_married_wom.40 TEXT, current_use_of_family_planning_methods_currently_married_wom.41 TEXT, current_use_of_family_planning_methods_currently_married_wom.42 TEXT, current_use_of_family_planning_methods_currently_married_wom.43 TEXT, current_use_of_family_planning_methods_currently_married_wom.44 TEXT, current_use_of_family_planning_methods_currently_married_wom.45 TEXT, current_use_of_family_planning_methods_currently_married_wom.46 TEXT, current_use_of_family_planning_methods_currently_married_wom.47 TEXT, current_use_of_family_planning_methods_currently_married_wom.48 TEXT, current_use_of_family_planning_methods_currently_married_wom.49 TEXT, current_use_of_family_planning_methods_currently_married_wom.50 TEXT, current_use_of_family_planning_methods_currently_married_wom.51 TEXT, current_use_of_family_planning_methods_currently_married_wom.52 TEXT, current_use_of_family_planning_methods_currently_married_wom.53 TEXT, current_use_of_family_planning_methods_currently_married_wom.54 TEXT, current_use_of_family_planning_methods_currently_married_wom.55 TEXT, current_use_of_family_planning_methods_currently_married_wom.56 TEXT, current_use_of_family_planning_methods_currently_married_wom.57 TEXT, current_use_of_family_planning_methods_currently_married_wom.58 TEXT, current_use_of_family_planning_methods_currently_married_wom.59 TEXT, current_use_of_family_planning_methods_currently_married_wom.60 TEXT, current_use_of_family_planning_methods_currently_married_wom.61 TEXT, current_use_of_family_planning_methods_currently_married_wom.62 TEXT, current_use_of_family_planning_methods_currently_married_wom.63 TEXT, total_unmet_need_for_family_planning_currently_married_women TEXT, unmet_need_for_spacing_currently_married_women_age_1549_year TEXT, health_worker_ever_talked_to_female_nonusers_about_family_pl TEXT, current_users_ever_told_about_side_effects_of_current_method TEXT, mothers_who_had_an_antenatal_checkup_in_the_first_trimester_ TEXT, mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi TEXT, mothers_whose_last_birth_was_protected_against_neonatal_teta TEXT, mothers_who_consumed_iron_folic_acid_for_100_days_or_more_wh TEXT, mothers_who_consumed_iron_folic_acid_for_180_days_or_more_wh TEXT, registered_pregnancies_for_which_the_mother_received_a_mothe TEXT, mothers_who_received_postnatal_care_from_a_doctornurselhvanm TEXT, average_outofpocket_expenditure_per_delivery_in_a_public_hea TEXT, children_born_at_home_who_were_taken_to_a_health_facility_fo TEXT, children_who_received_postnatal_care_from_a_doctornurselhvan TEXT, institutional_births_in_the_5_years_before_the_survey_ TEXT, institutional_births_in_public_facility_in_the_5_years_befor TEXT, home_births_that_were_conducted_by_skilled_health_personnel_ TEXT, births_attended_by_skilled_health_personnel_in_the_5_years_b TEXT, births_delivered_by_caesarean_section_in_the_5_years_before_ TEXT, births_in_a_private_health_facility_that_were_delivered_by_c TEXT, births_in_a_public_health_facility_that_were_delivered_by_ca TEXT, children_age_1223_months_fully_vaccinated_based_on_informati TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.1 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.2 TEXT, children_age_1223_months_fully_vaccinated_based_on_informati.3 TEXT, children_age_1223_months_who_have_received_bcg_ TEXT, children_age_1223_months_who_have_received_3_doses_of_polio_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_ TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.1 TEXT, children_age_1223_months_who_have_received_the_first_dose_of TEXT, children_age_2435_months_who_have_received_a_second_dose_of_ TEXT, children_age_1223_months_who_have_received_3_doses_of_rotavi TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.2 TEXT, children_age_1223_months_who_have_received_3_doses_of_penta_.3 TEXT, children_age_935_months_who_received_a_vitamin_a_dose_in_the TEXT, children_age_1223_months_who_received_most_of_their_vaccinat TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.1 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.2 TEXT, children_age_1223_months_who_received_most_of_their_vaccinat.3 TEXT, prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_ TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.1 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.2 TEXT, children_with_diarrhoea_in_the_2_weeks_preceding_the_survey_.3 TEXT, children_swith_diarrhoea_in_the_2_weeks_preceding_the_survey TEXT, children_prevalence_of_symptoms_of_acute_respiratory_infecti TEXT, children_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced TEXT, children_under_age_3_years_breastfed_within_one_hour_of_birt TEXT, children_under_age_6_months_exclusively_breastfed16_ TEXT, children_age_68_months_receiving_solid_or_semisolid_food_and TEXT, breastfeeding_children_age_623_months_receiving_an_adequate_ TEXT, nonbreastfeeding_children_age_623_months_receiving_an_adequa TEXT, total_children_age_623_months_receiving_an_adequate_diet16_1 TEXT, children_under_5_years_who_are_stunted_heightforage18_ TEXT, children_under_5_years_who_are_wasted_weightforheight18_ TEXT, children_under_5_years_who_are_severely_wasted_weightforheig TEXT, children_under_5_years_who_are_underweight_weightforage18_ TEXT, children_under_5_years_who_are_overweight_weightforheight20_ TEXT, women_age_1549_years_whose_body_mass_index_bmi_is_below_norm TEXT, men_age_1549_years_whose_body_mass_index_bmi_is_below_normal TEXT, women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm TEXT, men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ TEXT, women_age_1549_years_who_have_high_risk_waisttohip_ratio_085 TEXT, men_age_1549_years_who_have_high_risk_waisttohip_ratio_090_ TEXT, children_age_659_months_who_are_anaemic_110_gdl22_ TEXT, nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ TEXT, pregnant_women_15_49_who_are_anaemic_110_gdl22_ TEXT, all_women_15_49_who_are_anaemic22_ DOUBLE PRECISION, all_women_age_1519_years_who_are_anaemic22_ TEXT, men_age_1549_years_who_are_anaemic_130_gdl22_ TEXT, men_age_1519_years_who_are_anaemic_130_gdl22_ TEXT, women_age_15_years_and_above_with_high_141160_mgdl_blood_sug TEXT, women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DOUBLE PRECISION, women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ DOUBLE PRECISION, men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DOUBLE PRECISION, men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DOUBLE PRECISION, men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl DOUBLE PRECISION, women_age_15_years_and_above_wih_mildly_elevated_blood_press DOUBLE PRECISION, women_age_15_years_and_above_wih_moderately_or_severely_elev DOUBLE PRECISION, women_age_15_years_and_above_wih_elevated_blood_pressure_sys DOUBLE PRECISION, men_age_15_years_and_above_wih_mildly_elevated_blood_pressur DOUBLE PRECISION, men_age_15_years_and_above_wih_moderately_or_severely_elevat DOUBLE PRECISION, men_age_15_years_and_above_wih_elevated_blood_pressure_systo DOUBLE PRECISION, women_age_3049_years_ever_undergone_a_screening_test_for_cer TEXT, women_age_3049_years_ever_undergone_a_breast_examination_for TEXT, women_age_3049_years_ever_undergone_an_oral_cavity_examinati TEXT, men_age_3049_yearsever_undergone_an_oral_cavity_examination_ TEXT, women_age_1549_years_who_have_comprehensive_knowledge24_of_h TEXT, men_age_1549_years_who_have_comprehensive_knowledge24_of_hiv TEXT, women_age_1549_years_who_know_that_consistent_condom_use_can TEXT, men_age_1549_years_who_know_that_consistent_condom_use_can_r TEXT, currently_married_women_age_1549_years_who_usually_participa TEXT, women_age_1549_years_who_worked_in_the_last_12_months_and_we TEXT, women_age_1549_years_owning_a_house_andor_land_alone_or_join TEXT, women_age_1549_years_having_a_bank_or_savings_account_that_t TEXT, women_age_1549_years_having_a_mobile_phone_that_they_themsel TEXT, women_age_1524_years_who_use_hygienic_methods_of_protection_ TEXT, evermarried_women_age_1849_years_who_have_ever_experienced_s TEXT, evermarried_women_age_1849_years_who_have_experienced_physic TEXT, young_women_age_1829_years_who_experienced_sexual_violence_b TEXT, women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DOUBLE PRECISION, women_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION, men_age_15_years_and_above_who_consume_alcohol_ DOUBLE PRECISION);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state BIGINT, tru_id BIGINT, age TEXT, persons BIGINT, males BIGINT, females BIGINT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religion_stats (state BIGINT, tru_id BIGINT, religion_id BIGINT, tot_p BIGINT, tot_m BIGINT, tot_f BIGINT, p_06 BIGINT, m_06 BIGINT, f_06 BIGINT, p_lit BIGINT, m_lit BIGINT, f_lit BIGINT, p_ill BIGINT, m_ill BIGINT, f_ill BIGINT, tot_work_p BIGINT, tot_work_m BIGINT, tot_work_f BIGINT, mainwork_p BIGINT, mainwork_m BIGINT, mainwork_f BIGINT, main_cl_p BIGINT, main_cl_m BIGINT, main_cl_f BIGINT, main_al_p BIGINT, main_al_m BIGINT, main_al_f BIGINT, main_hh_p BIGINT, main_hh_m BIGINT, main_hh_f BIGINT, main_ot_p BIGINT, main_ot_m BIGINT, main_ot_f BIGINT, margwork_p BIGINT, margwork_m BIGINT, margwork_f BIGINT, marg_cl_p BIGINT, marg_cl_m BIGINT, marg_cl_f BIGINT, marg_al_p BIGINT, marg_al_m BIGINT, marg_al_f BIGINT, marg_hh_p BIGINT, marg_hh_m BIGINT, marg_hh_f BIGINT, marg_ot_p BIGINT, marg_ot_m BIGINT, marg_ot_f BIGINT, margwork_3_6_p BIGINT, margwork_3_6_m BIGINT, margwork_3_6_f BIGINT, marg_cl_3_6_p BIGINT, marg_cl_3_6_m BIGINT, marg_cl_3_6_f BIGINT, marg_al_3_6_p BIGINT, marg_al_3_6_m BIGINT, marg_al_3_6_f BIGINT, marg_hh_3_6_p BIGINT, marg_hh_3_6_m BIGINT, marg_hh_3_6_f BIGINT, marg_ot_3_6_p BIGINT, marg_ot_3_6_m BIGINT, marg_ot_3_6_f BIGINT, margwork_0_3_p BIGINT, margwork_0_3_m BIGINT, margwork_0_3_f BIGINT, marg_cl_0_3_p BIGINT, marg_cl_0_3_m BIGINT, marg_cl_0_3_f BIGINT, marg_al_0_3_p BIGINT, marg_al_0_3_m BIGINT, marg_al_0_3_f BIGINT, marg_hh_0_3_p BIGINT, marg_hh_0_3_m BIGINT, marg_hh_0_3_f BIGINT, marg_ot_0_3_p BIGINT, marg_ot_0_3_m BIGINT, marg_ot_0_3_f BIGINT, non_work_p BIGINT, non_work_m BIGINT, non_work_f BIGINT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT h.children_age_1223_months_fully_vaccinated_based_on_informati FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id WHERE r.area_name = 'Rajasthan' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the Area Sown 2025 26 for Foodgrains?`\n\n### Database Schema\nThis query will run on a database whose schema is represented in this string:\nCREATE TABLE age_groups (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE crop_stats (crop TEXT, normal_area_dafw DOUBLE PRECISION, area_sown_2025_26 DOUBLE PRECISION, area_sown_2024_25 DOUBLE PRECISION, difference_area DOUBLE PRECISION, pct_increase_decrease DOUBLE PRECISION);\nCREATE TABLE language_stats (state BIGINT, language_id BIGINT, tru_id BIGINT, person BIGINT, male BIGINT, female BIGINT);\nCREATE TABLE languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE regions (state BIGINT PRIMARY KEY, area_name TEXT);\nCREATE TABLE religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT area_sown_2025_26 FROM crop_stats WHERE crop = 'Foodgrains';"}