{"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest 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) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of fully vaccinated 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_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`Which state has the highest prevalence of stunting in 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`Which state has the lowest prevalence of wasting in 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`Which state has the highest percentage of underweight 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_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`Which states have a higher percentage of underweight children than stunted 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' AND CAST(h.children_under_5_years_who_are_underweight_weightforage18_ AS DOUBLE PRECISION) > CAST(h.children_under_5_years_who_are_stunted_heightforage18_ AS DOUBLE PRECISION);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has 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`Which states have institutional birth rates below 50%?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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' AND CAST(h.institutional_births_in_the_5_years_before_the_survey_ AS DOUBLE PRECISION) < 50;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the average rate of institutional births in rural India?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 AVG(CAST(h.institutional_births_in_the_5_years_before_the_survey_ AS DOUBLE PRECISION)) FROM healthcare_stats h JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of mothers who received at least 4 antenatal care 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 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have antenatal care coverage below 30%?`\n\n### Database Schema\nThis query 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' AND CAST(h.mothers_who_had_at_least_4_antenatal_care_visits_for_last_bi AS DOUBLE PRECISION) < 30;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of children breastfed within one hour of birth?`\n\n### Database Schema\nThis query 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`Is obesity more common in urban or rural India?`\n\n### Database Schema\nThis query 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\nWITH urban_obesity AS (SELECT AVG((CAST(women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm AS DOUBLE PRECISION) + CAST(men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ AS DOUBLE PRECISION))/2.0) as val FROM healthcare_stats h JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Urban'), rural_obesity AS (SELECT AVG((CAST(women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm AS DOUBLE PRECISION) + CAST(men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ AS DOUBLE PRECISION))/2.0) as val FROM healthcare_stats h JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Rural') SELECT CASE WHEN u.val > r.val THEN 'Urban' ELSE 'Rural' END FROM urban_obesity u, rural_obesity r;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the largest gap in obesity rates between men and women?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 ABS(CAST(h.women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm AS DOUBLE PRECISION) - CAST(h.men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ AS DOUBLE PRECISION)) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have more women with high blood sugar than men?`\n\n### Database Schema\nThis query 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' AND CAST(h.women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ AS DOUBLE PRECISION) > CAST(h.men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl AS DOUBLE PRECISION);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women using hygienic methods during menstruation?`\n\n### Database Schema\nThis query 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_1524_years_who_use_hygienic_methods_of_protection_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have less than 50% of women using hygienic menstrual methods?`\n\n### Database Schema\nThis query 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' AND CAST(h.women_age_1524_years_who_use_hygienic_methods_of_protection_ AS DOUBLE PRECISION) < 50;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of households using clean fuel for cooking?`\n\n### Database Schema\nThis query 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.hh_using_clean_fuel_for_cooking3_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have poor access to clean cooking fuel (below 20%)?`\n\n### Database Schema\nThis query 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 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' AND CAST(h.hh_using_clean_fuel_for_cooking3_ AS DOUBLE PRECISION) < 20;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has 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 h.pop_living_in_hh_with_electricity_ DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have less than 80% electricity coverage?`\n\n### Database Schema\nThis query 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' AND h.pop_living_in_hh_with_electricity_ < 80;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of households with improved sanitation?`\n\n### Database Schema\nThis query 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 h.pop_living_in_hh_that_use_an_improved_sanitation_facility2_ DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest access to improved drinking water?`\n\n### Database Schema\nThis query 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 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 h.pop_living_in_hh_with_an_improved_drinkingwater_source1_ ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest female literacy rate?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 h.women_age_1549_who_are_lit4_ DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy gap between men and women in rural India?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 AVG(CAST(h.men_age_1549_who_are_lit4_ AS DOUBLE PRECISION) - h.women_age_1549_who_are_lit4_) FROM healthcare_stats h JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women married before age 18?`\n\n### Database Schema\nThis query 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_2024_years_married_before_age_18_years_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have child marriage rates above 20%?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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' AND CAST(h.women_age_2024_years_married_before_age_18_years_ AS DOUBLE PRECISION) > 20;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of men married before age 21?`\n\n### Database Schema\nThis query 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_2529_years_married_before_age_21_years_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest total fertility rate?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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.total_fertility_rate_number_of_children_per_woman AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have a fertility rate below 2.0?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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' AND CAST(h.total_fertility_rate_number_of_children_per_woman AS DOUBLE PRECISION) < 2.0;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest adolescent fertility rate (15-19 years)?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 h.adolescent_fertility_rate_for_women_age_1519_years5 DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women who have ever used the internet?`\n\n### Database Schema\nThis query 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_who_have_ever_used_the_internet_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the biggest digital divide between men and women regarding internet usage?`\n\n### Database Schema\nThis query 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 ABS(CAST(h.men_age_1549_who_have_ever_used_the_internet_ AS DOUBLE PRECISION) - CAST(h.women_age_1549_who_have_ever_used_the_internet_ AS DOUBLE PRECISION)) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women owning a house or land?`\n\n### Database Schema\nThis query 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_owning_a_house_andor_land_alone_or_join AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women with a bank account?`\n\n### Database Schema\nThis query 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_1549_years_having_a_bank_or_savings_account_that_t AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women with a mobile phone?`\n\n### Database Schema\nThis query 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 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women who have experienced domestic violence?`\n\n### Database Schema\nThis query 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.evermarried_women_age_1849_years_who_have_experienced_physic AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest tobacco use among men?`\n\n### Database Schema\nThis query 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 h.men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest tobacco use among women?`\n\n### Database Schema\nThis query 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 h.women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest alcohol consumption among men?`\n\n### Database Schema\nThis query 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 h.men_age_15_years_and_above_who_consume_alcohol_ DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have alcohol consumption among men above 30%?`\n\n### Database Schema\nThis query 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' AND h.men_age_15_years_and_above_who_consume_alcohol_ > 30;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of children with diarrhoea in the last 2 weeks?`\n\n### Database Schema\nThis query 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.prevalence_of_diarrhoea_in_the_2_weeks_preceding_the_survey_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of children with fever or ARI symptoms?`\n\n### Database Schema\nThis query 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_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of children receiving an adequate diet?`\n\n### Database Schema\nThis query 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.total_children_age_623_months_receiving_an_adequate_diet16_1 AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of registered pregnancies receiving a Mother and Child Protection Card?`\n\n### Database Schema\nThis query 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.registered_pregnancies_for_which_the_mother_received_a_mothe AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of C-section deliveries in private facilities?`\n\n### Database Schema\nThis query 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.births_in_a_private_health_facility_that_were_delivered_by_c AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of C-section deliveries in public facilities?`\n\n### Database Schema\nThis query 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.births_in_a_public_health_facility_that_were_delivered_by_ca AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women with comprehensive HIV knowledge?`\n\n### Database Schema\nThis query 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_1549_years_who_have_comprehensive_knowledge24_of_h AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of men with comprehensive HIV knowledge?`\n\n### Database Schema\nThis query 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_1549_years_who_have_comprehensive_knowledge24_of_hiv AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of households with health insurance?`\n\n### Database Schema\nThis query 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.hh_with_any_usual_member_covered_under_a_health_insurancefin AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest female anaemia percentage?`\n\n### Database Schema\nThis query 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 h.all_women_15_49_who_are_anaemic22_ DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest male anaemia percentage?`\n\n### Database Schema\nThis query 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_1549_years_who_are_anaemic_130_gdl22_ AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the average vaccination rate across all states?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 AVG(CAST(h.children_age_1223_months_fully_vaccinated_based_on_informati AS DOUBLE PRECISION)) FROM healthcare_stats h JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have vaccination rates below 70%?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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' AND CAST(h.children_age_1223_months_fully_vaccinated_based_on_informati AS DOUBLE PRECISION) < 70;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest obesity rate?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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_years_who_are_overweight_or_obese_bmi_250_kgm AS DOUBLE PRECISION) + CAST(h.men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ AS DOUBLE PRECISION))/2.0 DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest obesity rate?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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_years_who_are_overweight_or_obese_bmi_250_kgm AS DOUBLE PRECISION) + CAST(h.men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ AS DOUBLE PRECISION))/2.0 ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have diabetes rates above 10%?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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' AND (h.women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ + h.men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl)/2.0 > 10;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the average diabetes rate in urban areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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 AVG((h.women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ + h.men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl)/2.0) FROM healthcare_stats h JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the average diabetes rate in rural areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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 AVG((h.women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ + h.men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl)/2.0) FROM healthcare_stats h JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest hypertension rate?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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 (h.women_age_15_years_and_above_wih_elevated_blood_pressure_sys + h.men_age_15_years_and_above_wih_elevated_blood_pressure_systo)/2.0 DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the average hypertension rate across all states?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 AVG((h.women_age_15_years_and_above_wih_elevated_blood_pressure_sys + h.men_age_15_years_and_above_wih_elevated_blood_pressure_systo)/2.0) FROM healthcare_stats h JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have hypertension rates above the national average?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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\nWITH avg_hyp AS (SELECT AVG((women_age_15_years_and_above_wih_elevated_blood_pressure_sys + men_age_15_years_and_above_wih_elevated_blood_pressure_systo)/2.0) as val FROM healthcare_stats h JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Total') SELECT r.area_name FROM healthcare_stats h JOIN regions r ON h.state = r.state JOIN tru t ON h.tru_id = t.id, avg_hyp WHERE t.name = 'Total' AND (h.women_age_15_years_and_above_wih_elevated_blood_pressure_sys + h.men_age_15_years_and_above_wih_elevated_blood_pressure_systo)/2.0 > avg_hyp.val;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the average female anaemia rate in rural areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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 AVG(h.all_women_15_49_who_are_anaemic22_) FROM healthcare_stats h JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the average female anaemia rate in urban areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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 AVG(h.all_women_15_49_who_are_anaemic22_) FROM healthcare_stats h JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have male anaemia rates higher than female anaemia rates?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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' AND CAST(h.men_age_1549_years_who_are_anaemic_130_gdl22_ AS DOUBLE PRECISION) > h.all_women_15_49_who_are_anaemic22_;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the biggest gap between female and male anaemia?`\n\n### Database Schema\nThis query 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 ABS(h.all_women_15_49_who_are_anaemic22_ - CAST(h.men_age_1549_years_who_are_anaemic_130_gdl22_ AS DOUBLE PRECISION)) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have obesity rates above diabetes rates?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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' AND ((CAST(h.women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm AS DOUBLE PRECISION) + CAST(h.men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ AS DOUBLE PRECISION))/2.0) > ((h.women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ + h.men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl)/2.0);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest vaccination rate?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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.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`Which states have vaccination rates above 90%?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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' AND CAST(h.children_age_1223_months_fully_vaccinated_based_on_informati AS DOUBLE PRECISION) > 90;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have higher hypertension rates in rural areas than urban areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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 regions r JOIN healthcare_stats h1 ON r.state = h1.state JOIN tru t1 ON h1.tru_id = t1.id JOIN healthcare_stats h2 ON r.state = h2.state JOIN tru t2 ON h2.tru_id = t2.id WHERE t1.name = 'Rural' AND t2.name = 'Urban' AND ((h1.women_age_15_years_and_above_wih_elevated_blood_pressure_sys + h1.men_age_15_years_and_above_wih_elevated_blood_pressure_systo)/2.0) > ((h2.women_age_15_years_and_above_wih_elevated_blood_pressure_sys + h2.men_age_15_years_and_above_wih_elevated_blood_pressure_systo)/2.0);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest combined anaemia burden?`\n\n### Database Schema\nThis query 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 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 (h.all_women_15_49_who_are_anaemic22_ + CAST(h.men_age_1549_years_who_are_anaemic_130_gdl22_ AS DOUBLE PRECISION)) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have obesity rates below 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 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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' AND ((CAST(h.women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm AS DOUBLE PRECISION) + CAST(h.men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ AS DOUBLE PRECISION))/2.0) < 5;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the average obesity rate in urban areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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 AVG((CAST(h.women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm AS DOUBLE PRECISION) + CAST(h.men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ AS DOUBLE PRECISION))/2.0) FROM healthcare_stats h JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the average obesity rate in rural areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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 AVG((CAST(h.women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm AS DOUBLE PRECISION) + CAST(h.men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ AS DOUBLE PRECISION))/2.0) FROM healthcare_stats h JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest vaccination rate in rural areas?`\n\n### Database Schema\nThis query 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 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 = 'Rural' ORDER BY CAST(h.children_age_1223_months_fully_vaccinated_based_on_informati AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest vaccination rate in urban areas?`\n\n### Database Schema\nThis query 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 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 = 'Urban' ORDER BY CAST(h.children_age_1223_months_fully_vaccinated_based_on_informati AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have female anaemia rates above 50%?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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' AND h.all_women_15_49_who_are_anaemic22_ > 50;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have male anaemia rates below 20%?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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' AND CAST(h.men_age_1549_years_who_are_anaemic_130_gdl22_ AS DOUBLE PRECISION) < 20;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many children in rural Bihar are fully vaccinated?`\n\n### Database Schema\nThis query 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 (CAST(h.children_age_1223_months_fully_vaccinated_based_on_informati AS DOUBLE PRECISION) * h.number_of_hh_surveyed / 100) 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 = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of people suffering from high blood pressure?`\n\n### Database Schema\nThis query 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 (h.women_age_15_years_and_above_wih_elevated_blood_pressure_sys + h.men_age_15_years_and_above_wih_elevated_blood_pressure_systo)/2.0 DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people in rural Uttar Pradesh have high blood pressure?`\n\n### Database Schema\nThis query 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 (CAST(h.women_age_15_years_and_above_wih_elevated_blood_pressure_sys AS DOUBLE PRECISION) * h.number_of_women_15_49_interviewed / 100 + CAST(h.men_age_15_years_and_above_wih_elevated_blood_pressure_systo AS DOUBLE PRECISION) * h.number_of_men_15_54_interviewed / 100) 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 women in Kerala are anaemic?`\n\n### Database Schema\nThis query 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.all_women_15_49_who_are_anaemic22_ * h.number_of_women_15_49_interviewed / 100) 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`How many children in urban Maharashtra are fully vaccinated?`\n\n### Database Schema\nThis query 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 (CAST(h.children_age_1223_months_fully_vaccinated_based_on_informati AS DOUBLE PRECISION) * h.number_of_hh_surveyed / 100) 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`How many people in urban Rajasthan are obese?`\n\n### Database Schema\nThis query 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 (CAST(h.women_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm AS DOUBLE PRECISION) * h.number_of_women_15_49_interviewed / 100 + CAST(h.men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ AS DOUBLE PRECISION) * h.number_of_men_15_54_interviewed / 100) 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 = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many children in rural Odisha have not received any vaccines?`\n\n### Database Schema\nThis query 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 ((100 - CAST(h.children_age_1223_months_fully_vaccinated_based_on_informati AS DOUBLE PRECISION)) * h.number_of_hh_surveyed / 100) 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';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people in Punjab suffer from diabetes?`\n\n### Database Schema\nThis query 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 (CAST(h.women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ AS DOUBLE PRECISION) * h.number_of_women_15_49_interviewed / 100 + CAST(h.men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl AS DOUBLE PRECISION) * h.number_of_men_15_54_interviewed / 100) 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`How many children in Bihar are underweight?`\n\n### Database Schema\nThis query 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 (CAST(h.children_under_5_years_who_are_underweight_weightforage18_ AS DOUBLE PRECISION) * h.number_of_hh_surveyed / 100) 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people live with diabetes in 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT (CAST(h.women_age_15_years_and_above_wih_high_or_very_high_140_mgdl_ AS DOUBLE PRECISION) * h.number_of_women_15_49_interviewed / 100 + CAST(h.men_age_15_years_and_above_wih_high_or_very_high_140_mgdl_bl AS DOUBLE PRECISION) * h.number_of_men_15_54_interviewed / 100) 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`Is high blood pressure more common in cities or villages in 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 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\nWITH tn_stats AS (SELECT t.name, (h.women_age_15_years_and_above_wih_elevated_blood_pressure_sys + h.men_age_15_years_and_above_wih_elevated_blood_pressure_systo)/2.0 as val 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 IN ('Urban', 'Rural')) SELECT CASE WHEN (SELECT val FROM tn_stats WHERE name='Urban') > (SELECT val FROM tn_stats WHERE name='Rural') THEN 'Urban' ELSE 'Rural' END;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many women are anaemic in 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.all_women_15_49_who_are_anaemic22_ * h.number_of_women_15_49_interviewed / 100) 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`Which states have the most underweight 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_under_5_years_who_are_underweight_weightforage18_ AS DOUBLE PRECISION) DESC LIMIT 5;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of literate women?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 h.women_age_1549_who_are_lit4_ DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of literate men?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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.men_age_1549_who_are_lit4_ AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women with 10 or more years of schooling?`\n\n### Database Schema\nThis query 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 h.women_age_1549_with_10_or_more_years_of_schooling_ DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of women with 10 or more years of schooling?`\n\n### Database Schema\nThis query 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 h.women_age_1549_with_10_or_more_years_of_schooling_ ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of men with 10 or more years of schooling?`\n\n### Database Schema\nThis query 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.men_age_1549_with_10_or_more_years_of_schooling_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of men with 10 or more years of schooling?`\n\n### Database Schema\nThis query 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.men_age_1549_with_10_or_more_years_of_schooling_ AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the average female literacy rate in urban areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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 AVG(h.women_age_1549_who_are_lit4_) FROM healthcare_stats h JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the average male literacy rate in rural areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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 AVG(CAST(h.men_age_1549_who_are_lit4_ AS DOUBLE PRECISION)) FROM healthcare_stats h JOIN tru t ON h.tru_id = t.id WHERE t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of children attending pre-primary school?`\n\n### Database Schema\nThis query 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.children_age_5_years_who_attended_preprimary_school_during_t AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of children attending pre-primary school?`\n\n### Database Schema\nThis query 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.children_age_5_years_who_attended_preprimary_school_during_t AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women who use the internet?`\n\n### Database Schema\nThis query 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_who_have_ever_used_the_internet_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of women who use the internet?`\n\n### Database Schema\nThis query 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_who_have_ever_used_the_internet_ AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of men who use the internet?`\n\n### Database Schema\nThis query 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.men_age_1549_who_have_ever_used_the_internet_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of men who use the internet?`\n\n### Database Schema\nThis query 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.men_age_1549_who_have_ever_used_the_internet_ AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of children with a birth certificate?`\n\n### Database Schema\nThis query 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.child_u5_whose_birth_was_registered_with_the_civil_authority AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of children with a birth certificate?`\n\n### Database Schema\nThis query 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.child_u5_whose_birth_was_registered_with_the_civil_authority AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of deaths registered with civil authority?`\n\n### Database Schema\nThis query 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.deaths_in_the_last_3_years_registered_with_the_civil_authori AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of deaths registered with civil authority?`\n\n### Database Schema\nThis query 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.deaths_in_the_last_3_years_registered_with_the_civil_authori AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women using iodized salt?`\n\n### Database Schema\nThis query 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.hh_using_iodized_salt_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of women using iodized salt?`\n\n### Database Schema\nThis query 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.hh_using_iodized_salt_ AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women who are overweight or obese?`\n\n### Database Schema\nThis query 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_who_are_overweight_or_obese_bmi_250_kgm AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of women who are overweight or obese?`\n\n### Database Schema\nThis query 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_who_are_overweight_or_obese_bmi_250_kgm AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of men who are overweight or obese?`\n\n### Database Schema\nThis query 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.men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of men who are overweight or obese?`\n\n### Database Schema\nThis query 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.men_age_1549_years_who_are_overweight_or_obese_bmi_250_kgm2_ AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women with high risk waist-to-hip ratio?`\n\n### Database Schema\nThis query 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_1549_years_who_have_high_risk_waisttohip_ratio_085 AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of women with high risk waist-to-hip ratio?`\n\n### Database Schema\nThis query 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_1549_years_who_have_high_risk_waisttohip_ratio_085 AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of men with high risk waist-to-hip ratio?`\n\n### Database Schema\nThis query 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_1549_years_who_have_high_risk_waisttohip_ratio_090_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of men with high risk waist-to-hip ratio?`\n\n### Database Schema\nThis query 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_1549_years_who_have_high_risk_waisttohip_ratio_090_ AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women who are anaemic (all women)?`\n\n### Database Schema\nThis query 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 h.all_women_15_49_who_are_anaemic22_ DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of women who are anaemic (all women)?`\n\n### Database Schema\nThis query 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 h.all_women_15_49_who_are_anaemic22_ ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of pregnant women who are anaemic?`\n\n### Database Schema\nThis query 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.pregnant_women_15_49_who_are_anaemic_110_gdl22_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of pregnant women who are anaemic?`\n\n### Database Schema\nThis query 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.pregnant_women_15_49_who_are_anaemic_110_gdl22_ AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of non-pregnant women who are anaemic?`\n\n### Database Schema\nThis query 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.nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of non-pregnant women who are anaemic?`\n\n### Database Schema\nThis query 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.nonpregnant_women_15_49_who_are_anaemic_120_gdl22_ AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of men who are anaemic?`\n\n### Database Schema\nThis query 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.men_age_1549_years_who_are_anaemic_130_gdl22_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of men who are anaemic?`\n\n### Database Schema\nThis query 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.men_age_1549_years_who_are_anaemic_130_gdl22_ AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has 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`Which state has 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`Which state has 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 h.men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has 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 h.men_age_15_years_and_above_wih_high_141160_mgdl_blood_sugar_ ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women with very 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 h.women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of women with very 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 h.women_age_15_years_and_above_wih_very_high_160_mgdl_blood_su ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of men with very 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 h.men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of men with very 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 h.men_age_15_years_and_above_wih_very_high_160_mgdl_blood_suga ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women with elevated blood pressure?`\n\n### Database Schema\nThis query 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 h.women_age_15_years_and_above_wih_elevated_blood_pressure_sys DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of women with elevated blood pressure?`\n\n### Database Schema\nThis query 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 h.women_age_15_years_and_above_wih_elevated_blood_pressure_sys ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of men with elevated blood pressure?`\n\n### Database Schema\nThis query 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 h.men_age_15_years_and_above_wih_elevated_blood_pressure_systo DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of men with elevated blood pressure?`\n\n### Database Schema\nThis query 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 h.men_age_15_years_and_above_wih_elevated_blood_pressure_systo ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women who have undergone cervical cancer screening?`\n\n### Database Schema\nThis query 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_3049_years_ever_undergone_a_screening_test_for_cer AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of women who have undergone cervical cancer screening?`\n\n### Database Schema\nThis query 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_3049_years_ever_undergone_a_screening_test_for_cer AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women who have undergone breast cancer screening?`\n\n### Database Schema\nThis query 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_3049_years_ever_undergone_a_breast_examination_for AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of women who have undergone breast cancer screening?`\n\n### Database Schema\nThis query 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_3049_years_ever_undergone_a_breast_examination_for AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women who have undergone oral cavity screening?`\n\n### Database Schema\nThis query 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_3049_years_ever_undergone_an_oral_cavity_examinati AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of women who have undergone oral cavity screening?`\n\n### Database Schema\nThis query 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_3049_years_ever_undergone_an_oral_cavity_examinati AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of men who have undergone oral cavity screening?`\n\n### Database Schema\nThis query 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.men_age_3049_yearsever_undergone_an_oral_cavity_examination_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of men who have undergone oral cavity screening?`\n\n### Database Schema\nThis query 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.men_age_3049_yearsever_undergone_an_oral_cavity_examination_ AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women who know that condoms prevent HIV?`\n\n### Database Schema\nThis query 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_who_know_that_consistent_condom_use_can AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of women who know that condoms prevent HIV?`\n\n### Database Schema\nThis query 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_who_know_that_consistent_condom_use_can AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of men who know that condoms prevent HIV?`\n\n### Database Schema\nThis query 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.men_age_1549_years_who_know_that_consistent_condom_use_can_r AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of men who know that condoms prevent HIV?`\n\n### Database Schema\nThis query 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.men_age_1549_years_who_know_that_consistent_condom_use_can_r AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of currently married women who participate in household decisions?`\n\n### Database Schema\nThis query 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.currently_married_women_age_1549_years_who_usually_participa AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of currently married women who participate in household decisions?`\n\n### Database Schema\nThis query 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.currently_married_women_age_1549_years_who_usually_participa AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women who worked in the last 12 months and were paid in cash?`\n\n### Database Schema\nThis query 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 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_who_worked_in_the_last_12_months_and_we AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of women who worked in the last 12 months and were paid in cash?`\n\n### Database Schema\nThis query 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 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_who_worked_in_the_last_12_months_and_we AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women who experienced sexual violence by age 18?`\n\n### Database Schema\nThis query 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.young_women_age_1829_years_who_experienced_sexual_violence_b AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of women who experienced sexual violence by age 18?`\n\n### Database Schema\nThis query 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.young_women_age_1829_years_who_experienced_sexual_violence_b AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women who use any kind of tobacco?`\n\n### Database Schema\nThis query 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 h.women_age_15_years_and_above_who_use_any_kind_of_tobacco_ DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of women who use any kind of tobacco?`\n\n### Database Schema\nThis query 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 h.women_age_15_years_and_above_who_use_any_kind_of_tobacco_ ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of men who use any kind of tobacco?`\n\n### Database Schema\nThis query 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 h.men_age_15_years_and_above_who_use_any_kind_of_tobacco_ DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of men who use any kind of tobacco?`\n\n### Database Schema\nThis query 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 h.men_age_15_years_and_above_who_use_any_kind_of_tobacco_ ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women who consume alcohol?`\n\n### Database Schema\nThis query 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 h.women_age_15_years_and_above_who_consume_alcohol_ DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of women who consume alcohol?`\n\n### Database Schema\nThis query 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 h.women_age_15_years_and_above_who_consume_alcohol_ ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of men who consume alcohol?`\n\n### Database Schema\nThis query 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 h.men_age_15_years_and_above_who_consume_alcohol_ DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of men who consume alcohol?`\n\n### Database Schema\nThis query 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 h.men_age_15_years_and_above_who_consume_alcohol_ ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of children with fever in the last 2 weeks?`\n\n### Database Schema\nThis query 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_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of children with fever in the last 2 weeks?`\n\n### Database Schema\nThis query 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_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of children with ARI symptoms in the last 2 weeks?`\n\n### Database Schema\nThis query 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_prevalence_of_symptoms_of_acute_respiratory_infecti AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of children with ARI symptoms in the last 2 weeks?`\n\n### Database Schema\nThis query 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_prevalence_of_symptoms_of_acute_respiratory_infecti AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of children who received advice or treatment for fever/ARI?`\n\n### Database Schema\nThis query 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_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of children who received advice or treatment for fever/ARI?`\n\n### Database Schema\nThis query 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_with_fever_or_symptoms_of_ari_in_the_2_weeks_preced AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of children who received a Vitamin A dose in the last 6 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 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_age_935_months_who_received_a_vitamin_a_dose_in_the AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of children who received a Vitamin A dose in the last 6 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 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_age_935_months_who_received_a_vitamin_a_dose_in_the AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of children who received 3 doses of rotavirus vaccine?`\n\n### Database Schema\nThis query 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_age_1223_months_who_have_received_3_doses_of_rotavi AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of children who received 3 doses of rotavirus vaccine?`\n\n### Database Schema\nThis query 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_age_1223_months_who_have_received_3_doses_of_rotavi AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of children who received 3 doses of pentavalent vaccine?`\n\n### Database Schema\nThis query 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_age_1223_months_who_have_received_3_doses_of_penta_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of children who received 3 doses of pentavalent vaccine?`\n\n### Database Schema\nThis query 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_age_1223_months_who_have_received_3_doses_of_penta_ AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of children who received 3 doses of polio vaccine?`\n\n### Database Schema\nThis query 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_age_1223_months_who_have_received_3_doses_of_polio_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of children who received 3 doses of polio vaccine?`\n\n### Database Schema\nThis query 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_age_1223_months_who_have_received_3_doses_of_polio_ AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of children who received BCG vaccine?`\n\n### Database Schema\nThis query 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_age_1223_months_who_have_received_bcg_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of children who received BCG vaccine?`\n\n### Database Schema\nThis query 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_age_1223_months_who_have_received_bcg_ AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of children who received measles vaccine?`\n\n### Database Schema\nThis query 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_age_1223_months_who_have_received_the_first_dose_of AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of children who received measles vaccine?`\n\n### Database Schema\nThis query 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_age_1223_months_who_have_received_the_first_dose_of AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of children who received Hepatitis B vaccine?`\n\n### Database Schema\nThis query 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_age_1223_months_who_have_received_3_doses_of_penta_.1\" AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of children who received Hepatitis B vaccine?`\n\n### Database Schema\nThis query 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_age_1223_months_who_have_received_3_doses_of_penta_.1\" AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of institutional births in public facilities?`\n\n### Database Schema\nThis query 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_public_facility_in_the_5_years_befor AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of institutional births in public facilities?`\n\n### Database Schema\nThis query 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_public_facility_in_the_5_years_befor AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of home births conducted by skilled health personnel?`\n\n### Database Schema\nThis query 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.home_births_that_were_conducted_by_skilled_health_personnel_ AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of home births conducted by skilled health personnel?`\n\n### Database Schema\nThis query 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.home_births_that_were_conducted_by_skilled_health_personnel_ AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of births attended by skilled health personnel?`\n\n### Database Schema\nThis query 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.births_attended_by_skilled_health_personnel_in_the_5_years_b AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of births attended by skilled health personnel?`\n\n### Database Schema\nThis query 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.births_attended_by_skilled_health_personnel_in_the_5_years_b AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women who received postnatal care from a doctor/nurse/LHV/ANM/midwife?`\n\n### Database Schema\nThis query 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_received_postnatal_care_from_a_doctornurselhvanm AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of women who received postnatal care from a doctor/nurse/LHV/ANM/midwife?`\n\n### Database Schema\nThis query 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_received_postnatal_care_from_a_doctornurselhvanm AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of children who received postnatal care from a doctor/nurse/LHV/ANM/midwife?`\n\n### Database Schema\nThis query 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_who_received_postnatal_care_from_a_doctornurselhvan AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of children who received postnatal care from a doctor/nurse/LHV/ANM/midwife?`\n\n### Database Schema\nThis query 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_who_received_postnatal_care_from_a_doctornurselhvan AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest average out-of-pocket expenditure per delivery in a public health facility?`\n\n### Database Schema\nThis query 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 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.average_outofpocket_expenditure_per_delivery_in_a_public_hea AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest average out-of-pocket expenditure per delivery in a public health facility?`\n\n### Database Schema\nThis query 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 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.average_outofpocket_expenditure_per_delivery_in_a_public_hea AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women who consumed iron folic acid for 100 days or more when pregnant?`\n\n### Database Schema\nThis query 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_consumed_iron_folic_acid_for_100_days_or_more_wh AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of women who consumed iron folic acid for 100 days or more when pregnant?`\n\n### Database Schema\nThis query 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_consumed_iron_folic_acid_for_100_days_or_more_wh AS DOUBLE PRECISION) ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of women whose last birth was protected against neonatal tetanus?`\n\n### Database Schema\nThis query 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_whose_last_birth_was_protected_against_neonatal_teta AS DOUBLE PRECISION) DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Muslims live in 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 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Hindi in 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 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 = 'Uttar Pradesh' AND l.name = 'Hindi' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How does the Christian population compare between rural and 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 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 t.name AS area_type, 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 = 'Christian' AND t.name IN ('Rural', 'Urban');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which three languages are spoken the most in 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 l.name, 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 t.name = 'Total' ORDER BY ls.person DESC LIMIT 3;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which religion has the highest literacy rate in India?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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 rel.religion_name, (SUM(rs.p_lit) * 100.0 / NULLIF(SUM(rs.tot_p), 0)) as literacy_rate 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 = 'India' AND t.name = 'Total' GROUP BY rel.religion_name ORDER BY literacy_rate DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many women in Tamil Nadu speak Tamil?`\n\n### Database Schema\nThis query 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.female 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 = 'Tamil Nadu' AND l.name = 'Tamil' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Jains in Maharashtra are currently not working?`\n\n### Database Schema\nThis query 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 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.non_work_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 = 'Jain' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people in rural West Bengal speak Bengali?`\n\n### Database Schema\nThis query 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 = 'Bengali' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Who has a larger Sikh population: Punjab or 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 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, 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 rel.religion_name = 'Sikh' AND r.area_name IN ('Punjab', 'Haryana') AND t.name = 'Total' ORDER BY rs.tot_p DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy gap between Hindu men and women in India?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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.m_lit - rs.f_lit) as literacy_gap 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 = 'India' AND rel.religion_name = 'Hindu' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the largest populations? List them in order.`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name AS state_name, SUM(p.persons) AS total_population FROM population_stats p JOIN regions r ON p.state = r.state JOIN tru t ON p.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY total_population DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which 5 states have the most people living in rural areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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 AS state_name, SUM(p.persons) AS rural_population FROM population_stats p JOIN regions r ON p.state = r.state JOIN tru t ON p.tru_id = t.id WHERE t.name = 'Rural' GROUP BY r.area_name ORDER BY rural_population DESC LIMIT 5;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which 5 states have the most people living in urban areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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 AS state_name, SUM(p.persons) AS urban_population FROM population_stats p JOIN regions r ON p.state = r.state JOIN tru t ON p.tru_id = t.id WHERE t.name = 'Urban' GROUP BY r.area_name ORDER BY urban_population DESC LIMIT 5;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have more women than men?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name AS state_name, (SUM(p.females) * 1000.0 / NULLIF(SUM(p.males), 0)) AS sex_ratio FROM population_stats p JOIN regions r ON p.state = r.state JOIN tru t ON p.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY sex_ratio DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states show the biggest difference in gender balance between their villages and cities?`\n\n### Database Schema\nThis query 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 r.area_name AS state_name, ABS((SUM(CASE WHEN t.name = 'Urban' THEN p.females ELSE 0 END) * 1000.0 / NULLIF(SUM(CASE WHEN t.name = 'Urban' THEN p.males ELSE 0 END), 0)) - (SUM(CASE WHEN t.name = 'Rural' THEN p.females ELSE 0 END) * 1000.0 / NULLIF(SUM(CASE WHEN t.name = 'Rural' THEN p.males ELSE 0 END), 0))) AS sex_ratio_difference FROM population_stats p JOIN regions r ON p.state = r.state JOIN tru t ON p.tru_id = t.id GROUP BY r.area_name ORDER BY sex_ratio_difference DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which three age groups account for the most people in India?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT age, SUM(persons) AS total_population FROM population_stats GROUP BY age ORDER BY total_population DESC LIMIT 3;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Can you break down the population by age, state, and whether they live in a city or village?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name AS state_name, t.name AS area_type, p.age, SUM(p.persons) AS population FROM population_stats p JOIN regions r ON p.state = r.state JOIN tru t ON p.tru_id = t.id GROUP BY r.area_name, t.name, p.age ORDER BY r.area_name, t.name, p.age;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the most young children (0-6) living in rural areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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 AS state_name, SUM(p.persons) AS rural_children FROM population_stats p JOIN regions r ON p.state = r.state JOIN tru t ON p.tru_id = t.id WHERE t.name = 'Rural' AND p.age = '0-6' GROUP BY r.area_name ORDER BY rural_children DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What percentage of each state's total population is female?`\n\n### Database Schema\nThis query 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 r.area_name AS state_name, (SUM(p.females) * 100.0 / NULLIF(SUM(p.persons), 0)) AS female_percentage FROM population_stats p JOIN regions r ON p.state = r.state JOIN tru t ON p.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which age group is the largest in the rural areas of each state?`\n\n### Database Schema\nThis query 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 population_stats (state 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\nWITH rural_totals AS (SELECT state, SUM(persons) AS total_persons FROM population_stats p JOIN tru t ON p.tru_id = t.id WHERE t.name = 'Rural' GROUP BY state), ranked_ages AS (SELECT p.state, p.age, SUM(p.persons) * 1.0 / rt.total_persons AS share, ROW_NUMBER() OVER (PARTITION BY p.state ORDER BY SUM(p.persons) DESC) AS rn FROM population_stats p JOIN tru t ON p.tru_id = t.id JOIN rural_totals rt ON p.state = rt.state WHERE t.name = 'Rural' GROUP BY p.state, p.age, rt.total_persons) SELECT r.area_name AS state_name, age FROM ranked_ages ra JOIN regions r ON ra.state = r.state WHERE rn = 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have more people living in cities than in villages?`\n\n### Database Schema\nThis query 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 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id GROUP BY r.area_name HAVING SUM(CASE WHEN t.name='Urban' THEN p.persons ELSE 0 END) > SUM(CASE WHEN t.name='Rural' THEN p.persons ELSE 0 END);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have a rural population that is larger than their urban population?`\n\n### Database Schema\nThis query 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 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id GROUP BY r.area_name HAVING SUM(CASE WHEN t.name='Rural' THEN p.persons ELSE 0 END) > SUM(CASE WHEN t.name='Urban' THEN p.persons ELSE 0 END);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of men?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.males) AS total_males FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' GROUP BY r.area_name ORDER BY total_males DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of women?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.females) AS total_females FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' GROUP BY r.area_name ORDER BY total_females DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the largest gap between the number of men and women?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, ABS(SUM(p.males)-SUM(p.females)) AS gender_gap FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' GROUP BY r.area_name ORDER BY gender_gap DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have a lot of young people but very few elderly people?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(CASE WHEN p.age IN ('0-6','7-14','15-19') THEN p.persons ELSE 0 END) AS young_pop FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' GROUP BY r.area_name ORDER BY young_pop DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have a large elderly population?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(CASE WHEN p.age IN ('60+','65+') THEN p.persons ELSE 0 END) AS elderly_pop FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' GROUP BY r.area_name ORDER BY elderly_pop DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the biggest urban populations?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) AS urban_pop FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Urban' GROUP BY r.area_name ORDER BY urban_pop DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the biggest rural populations?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) AS rural_pop FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Rural' GROUP BY r.area_name ORDER BY rural_pop DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the most equal ratio of men to women?`\n\n### Database Schema\nThis query 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 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' GROUP BY r.area_name HAVING ABS(SUM(p.males)-SUM(p.females)) < 0.02 * SUM(p.persons);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the smallest populations?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) AS total_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' GROUP BY r.area_name ORDER BY total_population ASC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states are more rural than urban?`\n\n### Database Schema\nThis query 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 r.area_name FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id GROUP BY r.area_name HAVING SUM(CASE WHEN t.name='Rural' THEN p.persons ELSE 0 END) > SUM(CASE WHEN t.name='Urban' THEN p.persons ELSE 0 END);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states are more urban than rural?`\n\n### Database Schema\nThis query 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 r.area_name FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id GROUP BY r.area_name HAVING SUM(CASE WHEN t.name='Urban' THEN p.persons ELSE 0 END) > SUM(CASE WHEN t.name='Rural' THEN p.persons ELSE 0 END);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`In which states do rural women outnumber rural men?`\n\n### Database Schema\nThis query 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 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Rural' GROUP BY r.area_name HAVING SUM(p.females) > SUM(p.males);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`In which states do urban women outnumber urban men?`\n\n### Database Schema\nThis query 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 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Urban' GROUP BY r.area_name HAVING SUM(p.females) > SUM(p.males);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the largest population of children (0-6)?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) AS children_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' AND p.age='0-6' GROUP BY r.area_name ORDER BY children_population DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the smallest population of elderly people?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) AS elderly_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' AND p.age IN ('60+','65+') GROUP BY r.area_name ORDER BY elderly_population ASC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have twice as many people living in villages as in cities?`\n\n### Database Schema\nThis query 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 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id GROUP BY r.area_name HAVING SUM(CASE WHEN t.name='Rural' THEN p.persons ELSE 0 END) > 2 * SUM(CASE WHEN t.name='Urban' THEN p.persons ELSE 0 END);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have twice as many people living in cities as in villages?`\n\n### Database Schema\nThis query 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 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id GROUP BY r.area_name HAVING SUM(CASE WHEN t.name='Urban' THEN p.persons ELSE 0 END) > 2 * SUM(CASE WHEN t.name='Rural' THEN p.persons ELSE 0 END);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the smallest difference between the number of men and women?`\n\n### Database Schema\nThis query 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 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' GROUP BY r.area_name HAVING ABS(SUM(p.males)-SUM(p.females)) < 0.01 * SUM(p.persons);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the fewest people living in rural areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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, SUM(p.persons) AS rural_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Rural' GROUP BY r.area_name ORDER BY rural_population ASC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the fewest people living in urban areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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, SUM(p.persons) AS urban_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Urban' GROUP BY r.area_name ORDER BY urban_population ASC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the most elderly people (60+)?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) AS elderly_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' AND p.age IN ('60+','65+') GROUP BY r.area_name ORDER BY elderly_population DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have more elderly people than young 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' GROUP BY r.area_name HAVING SUM(CASE WHEN p.age IN ('60+','65+') THEN p.persons ELSE 0 END) > SUM(CASE WHEN p.age='0-6' THEN p.persons ELSE 0 END);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`In which states do men outnumber women in urban areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Urban' GROUP BY r.area_name HAVING SUM(p.males) > SUM(p.females);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`In which states do women outnumber men in rural areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Rural' GROUP BY r.area_name HAVING SUM(p.females) > SUM(p.males);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have three times as many city dwellers as villagers?`\n\n### Database Schema\nThis query 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 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id GROUP BY r.area_name HAVING SUM(CASE WHEN t.name='Urban' THEN p.persons ELSE 0 END) > 3 * SUM(CASE WHEN t.name='Rural' THEN p.persons ELSE 0 END);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have three times as many villagers as city dwellers?`\n\n### Database Schema\nThis query 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 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id GROUP BY r.area_name HAVING SUM(CASE WHEN t.name='Rural' THEN p.persons ELSE 0 END) > 3 * SUM(CASE WHEN t.name='Urban' THEN p.persons ELSE 0 END);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the largest workforce (people not children or elderly)?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) AS working_age_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' AND p.age NOT IN ('0-6','60+','65+') GROUP BY r.area_name ORDER BY working_age_population DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have roughly the same number of people in rural and urban areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id GROUP BY r.area_name HAVING ABS(SUM(CASE WHEN t.name='Urban' THEN p.persons ELSE 0 END)-SUM(CASE WHEN t.name='Rural' THEN p.persons ELSE 0 END)) < 0.05 * SUM(p.persons);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`List the states with the biggest rural populations.`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) AS rural_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Rural' GROUP BY r.area_name ORDER BY rural_population DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`List the states with the biggest urban populations.`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) AS urban_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Urban' GROUP BY r.area_name ORDER BY urban_population DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Where is the gender gap the smallest?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, ABS(SUM(p.males)-SUM(p.females)) AS gender_diff FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' GROUP BY r.area_name ORDER BY gender_diff ASC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the most women?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.females) AS total_females FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' GROUP BY r.area_name ORDER BY total_females DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the most men?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.males) AS total_males FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' GROUP BY r.area_name ORDER BY total_males DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the highest percentage of 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, SUM(p.persons) * 1.0 / (SELECT SUM(persons) FROM population_stats ps WHERE ps.state=p.state AND ps.tru_id=p.tru_id) AS child_share FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' AND p.age='0-6' GROUP BY r.area_name, p.state, p.tru_id ORDER BY child_share DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the highest percentage of elderly people?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) * 1.0 / (SELECT SUM(persons) FROM population_stats ps WHERE ps.state=p.state AND ps.tru_id=p.tru_id) AS elderly_share FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' AND p.age IN ('60+','65+') GROUP BY r.area_name, p.state, p.tru_id ORDER BY elderly_share DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`In which states does the rural population exceed the urban population?`\n\n### Database Schema\nThis query 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 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id GROUP BY r.area_name HAVING SUM(CASE WHEN t.name='Rural' THEN p.persons ELSE 0 END) > SUM(CASE WHEN t.name='Urban' THEN p.persons ELSE 0 END);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`In which states does the urban population exceed the rural population?`\n\n### Database Schema\nThis query 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 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id GROUP BY r.area_name HAVING SUM(CASE WHEN t.name='Urban' THEN p.persons ELSE 0 END) > SUM(CASE WHEN t.name='Rural' THEN p.persons ELSE 0 END);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have a rural/urban population split that is almost equal (less than 10% difference)?`\n\n### Database Schema\nThis query 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 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id GROUP BY r.area_name HAVING ABS(SUM(CASE WHEN t.name='Urban' THEN p.persons ELSE 0 END)-SUM(CASE WHEN t.name='Rural' THEN p.persons ELSE 0 END)) < 0.1 * SUM(p.persons);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Rank the states by total population.`\n\n### Database Schema\nThis query 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 r.area_name, SUM(p.persons) AS total_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' GROUP BY r.area_name ORDER BY total_population DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the smallest rural populations?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) AS rural_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Rural' GROUP BY r.area_name ORDER BY rural_population ASC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the smallest urban populations?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) AS urban_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Urban' GROUP BY r.area_name ORDER BY urban_population ASC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have at least 20% more women than men?`\n\n### Database Schema\nThis query 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 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' GROUP BY r.area_name HAVING SUM(p.females) > 1.2 * SUM(p.males);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have at least 20% more men than women?`\n\n### Database Schema\nThis query 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 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' GROUP BY r.area_name HAVING SUM(p.males) > 1.2 * SUM(p.females);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the most teenagers?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) AS teen_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' AND p.age IN ('10-14','15-19') GROUP BY r.area_name ORDER BY teen_population DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the fewest young 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, SUM(p.persons) AS child_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' AND p.age='0-6' GROUP BY r.area_name ORDER BY child_population ASC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the largest working-age populations?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) AS working_age_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' AND p.age NOT IN ('0-6','60+','65+') GROUP BY r.area_name ORDER BY working_age_population DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the smallest working-age populations?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) AS working_age_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' AND p.age NOT IN ('0-6','60+','65+') GROUP BY r.area_name ORDER BY working_age_population ASC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have nearly identical rural and urban population counts (within 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id GROUP BY r.area_name HAVING ABS(SUM(CASE WHEN t.name='Urban' THEN p.persons ELSE 0 END)-SUM(CASE WHEN t.name='Rural' THEN p.persons ELSE 0 END)) < 0.05 * SUM(p.persons);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Where do the most villagers live?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) AS rural_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Rural' GROUP BY r.area_name ORDER BY rural_population DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Where do the most city dwellers live?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) AS urban_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Urban' GROUP BY r.area_name ORDER BY urban_population DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have a rural population that is double the urban one?`\n\n### Database Schema\nThis query 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 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id GROUP BY r.area_name HAVING SUM(CASE WHEN t.name='Rural' THEN p.persons ELSE 0 END) > 2 * SUM(CASE WHEN t.name='Urban' THEN p.persons ELSE 0 END);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have an urban population that is double the rural one?`\n\n### Database Schema\nThis query 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 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id GROUP BY r.area_name HAVING SUM(CASE WHEN t.name='Urban' THEN p.persons ELSE 0 END) > 2 * SUM(CASE WHEN t.name='Rural' THEN p.persons ELSE 0 END);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the lowest overall population?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) AS total_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' GROUP BY r.area_name ORDER BY total_population ASC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the fewest women?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.females) AS total_females FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' GROUP BY r.area_name ORDER BY total_females ASC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the fewest men?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.males) AS total_males FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' GROUP BY r.area_name ORDER BY total_males ASC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the most 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, SUM(p.persons) AS child_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' AND p.age='0-6' GROUP BY r.area_name ORDER BY child_population DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the fewest teenagers?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) AS teen_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' AND p.age IN ('10-14','15-19') GROUP BY r.area_name ORDER BY teen_population ASC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the largest number of elderly people?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) AS elderly_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' AND p.age IN ('60+','65+') GROUP BY r.area_name ORDER BY elderly_population DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the most women living in rural areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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, SUM(p.females) AS rural_females FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Rural' GROUP BY r.area_name ORDER BY rural_females DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the most men living in rural areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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, SUM(p.males) AS rural_males FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Rural' GROUP BY r.area_name ORDER BY rural_males DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the most women living in urban areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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, SUM(p.females) AS urban_females FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Urban' GROUP BY r.area_name ORDER BY urban_females DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the most men living in urban areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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, SUM(p.males) AS urban_males FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Urban' GROUP BY r.area_name ORDER BY urban_males DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the fewest elderly people?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) AS elderly_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' AND p.age IN ('60+','65+') GROUP BY r.area_name ORDER BY elderly_population ASC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the fewest 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, SUM(p.persons) AS child_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' AND p.age='0-6' GROUP BY r.area_name ORDER BY child_population ASC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the most adults (15-59)?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) AS adult_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' AND p.age NOT IN ('0-6','10-14','15-19','60+','65+') GROUP BY r.area_name ORDER BY adult_population DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the fewest adults (15-59)?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(p.persons) AS adult_population FROM population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' AND p.age NOT IN ('0-6','10-14','15-19','60+','65+') GROUP BY r.area_name ORDER BY adult_population ASC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have a similar number of young children and elderly people?`\n\n### Database Schema\nThis query 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 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' GROUP BY r.area_name HAVING ABS(SUM(CASE WHEN p.age='0-6' THEN p.persons ELSE 0 END)-SUM(CASE WHEN p.age IN ('60+','65+') THEN p.persons ELSE 0 END)) < 0.05 * SUM(p.persons);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which states have the biggest difference between their child and elderly populations?`\n\n### Database Schema\nThis query 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 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 population_stats p JOIN regions r ON p.state=r.state JOIN tru t ON p.tru_id=t.id WHERE t.name='Total' GROUP BY r.area_name ORDER BY ABS(SUM(CASE WHEN p.age='0-6' THEN p.persons ELSE 0 END)-SUM(CASE WHEN p.age IN ('60+','65+') THEN p.persons ELSE 0 END)) DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state is home to the most Muslims?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(rs.tot_p) AS total_muslim_population 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 rel.religion_name='Muslim' AND t.name='Total' GROUP BY r.area_name ORDER BY total_muslim_population DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state is home to the most Christians?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(rs.tot_p) AS total_christian_population 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 rel.religion_name='Christian' AND t.name='Total' GROUP BY r.area_name ORDER BY total_christian_population DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state is home to the most Sikhs?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(rs.tot_p) AS total_sikh_population 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 rel.religion_name='Sikh' AND t.name='Total' GROUP BY r.area_name ORDER BY total_sikh_population DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state is home to the most Buddhists?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(rs.tot_p) AS total_buddhist_population 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 rel.religion_name='Buddhist' AND t.name='Total' GROUP BY r.area_name ORDER BY total_buddhist_population DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state is home to the most Jains?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(rs.tot_p) AS total_jain_population 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 rel.religion_name='Jain' AND t.name='Total' GROUP BY r.area_name ORDER BY total_jain_population DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Where are the most Marathi speakers found?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(l.person) AS marathi_speakers FROM language_stats l JOIN regions r ON l.state=r.state JOIN languages lang ON l.language_id=lang.id JOIN tru t ON l.tru_id=t.id WHERE lang.name='Marathi' AND t.name='Total' GROUP BY r.area_name ORDER BY marathi_speakers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Where are the most Telugu speakers found?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(l.person) AS telugu_speakers FROM language_stats l JOIN regions r ON l.state=r.state JOIN languages lang ON l.language_id=lang.id JOIN tru t ON l.tru_id=t.id WHERE lang.name='Telugu' AND t.name='Total' GROUP BY r.area_name ORDER BY telugu_speakers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Where are the most Urdu speakers found?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(l.person) AS urdu_speakers FROM language_stats l JOIN regions r ON l.state=r.state JOIN languages lang ON l.language_id=lang.id JOIN tru t ON l.tru_id=t.id WHERE lang.name='Urdu' AND t.name='Total' GROUP BY r.area_name ORDER BY urdu_speakers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Where are the most Malayalam speakers found?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(l.person) AS malayalam_speakers FROM language_stats l JOIN regions r ON l.state=r.state JOIN languages lang ON l.language_id=lang.id JOIN tru t ON l.tru_id=t.id WHERE lang.name='Malayalam' AND t.name='Total' GROUP BY r.area_name ORDER BY malayalam_speakers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Where are the most Punjabi speakers found?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(l.person) AS punjabi_speakers FROM language_stats l JOIN regions r ON l.state=r.state JOIN languages lang ON l.language_id=lang.id JOIN tru t ON l.tru_id=t.id WHERE lang.name='Punjabi' AND t.name='Total' GROUP BY r.area_name ORDER BY punjabi_speakers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Gujarati in 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 = 'Gujarati' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the largest number of Odia speakers?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(ls.person) AS odia_speakers 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 l.name = 'Odia' AND t.name = 'Total' GROUP BY r.area_name ORDER BY odia_speakers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people in Assam speak Assamese?`\n\n### Database Schema\nThis query 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Count the number of Kannada speakers in rural areas of 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 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 population_stats (state 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 = 'Kannada' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the most people speaking Konkani?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(ls.person) AS konkani_speakers 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 l.name = 'Konkani' AND t.name = 'Total' GROUP BY r.area_name ORDER BY konkani_speakers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many women are literate among the Muslim population in India?`\n\n### Database Schema\nThis query 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 SUM(rs.f_lit) AS literate_muslim_women 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 rel.religion_name = 'Muslim' AND r.area_name = 'India' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of literate Hindu women?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, SUM(rs.f_lit) AS literate_hindu_women 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 rel.religion_name = 'Hindu' AND t.name = 'Total' GROUP BY r.area_name ORDER BY literate_hindu_women DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Christians in Kerala are currently working?`\n\n### Database Schema\nThis query 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 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_work_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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Find the total number of illiterate Jains in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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.p_ill 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 = 'Jain' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which religion has the lowest female literacy rate in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 rel.religion_name, (SUM(rs.f_lit) * 100.0 / NULLIF(SUM(rs.tot_f), 0)) as female_literacy_rate 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 t.name = 'Total' GROUP BY rel.religion_name ORDER BY female_literacy_rate ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Sikh men live 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 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_m 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 = 'Sikh' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of Buddhists living in cities?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(rs.tot_p) AS urban_buddhists 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 rel.religion_name = 'Buddhist' AND t.name = 'Urban' GROUP BY r.area_name ORDER BY urban_buddhists DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Maithili in 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 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 = 'Bihar' AND l.name = 'Maithili' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the most Santali speakers?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(ls.person) AS santali_speakers 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 l.name = 'Santali' AND t.name = 'Total' GROUP BY r.area_name ORDER BY santali_speakers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people list English as their language in 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 = 'English' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of Kashmiri speakers in 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 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 = 'Jammu & Kashmir' AND l.name = 'Kashmiri' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Nepali speakers live in 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 = 'Nepali' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the largest Sindhi-speaking population?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(ls.person) AS sindhi_speakers 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 l.name = 'Sindhi' AND t.name = 'Total' GROUP BY r.area_name ORDER BY sindhi_speakers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Dogri speakers are there in India?`\n\n### Database Schema\nThis query 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 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 SUM(ls.person) AS total_dogri_speakers 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 l.name = 'Dogri' AND r.area_name = 'India' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`In which state is the gender gap in literacy the highest for Muslims?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, ABS((SUM(rs.m_lit)*100.0/NULLIF(SUM(rs.tot_m),0)) - (SUM(rs.f_lit)*100.0/NULLIF(SUM(rs.tot_f),0))) as literacy_gap 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 rel.religion_name = 'Muslim' AND t.name = 'Total' GROUP BY r.area_name ORDER BY literacy_gap DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of working women among Christians?`\n\n### Database Schema\nThis query 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 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 r.area_name, (SUM(rs.tot_work_f) * 100.0 / NULLIF(SUM(rs.tot_f), 0)) as female_work_participation 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 rel.religion_name = 'Christian' AND t.name = 'Total' GROUP BY r.area_name ORDER BY female_work_participation DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Buddhist children (0-6) are there in 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 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.p_06 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the largest population of illiterate men?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, SUM(rs.m_ill) AS illiterate_men FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN tru t ON rs.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY illiterate_men DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the largest population of illiterate women?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, SUM(rs.f_ill) AS illiterate_women FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN tru t ON rs.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY illiterate_women DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Hindus live in the urban areas of 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 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 population_stats (state 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 = 'West Bengal' AND rel.religion_name = 'Hindu' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Muslims live in the rural areas of 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 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 population_stats (state 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 = 'Muslim' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the most Jain men?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(rs.tot_m) AS jain_men 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 rel.religion_name = 'Jain' AND t.name = 'Total' GROUP BY r.area_name ORDER BY jain_men DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the most Sikh women?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(rs.tot_f) AS sikh_women 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 rel.religion_name = 'Sikh' AND t.name = 'Total' GROUP BY r.area_name ORDER BY sikh_women DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Sanskrit in India?`\n\n### Database Schema\nThis query 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 SUM(ls.person) AS sanskrit_speakers 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 l.name = 'Sanskrit' AND r.area_name = 'India' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of Tulu speakers?`\n\n### Database Schema\nThis query 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 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, SUM(ls.person) AS tulu_speakers 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 l.name = 'Tulu' AND t.name = 'Total' GROUP BY r.area_name ORDER BY tulu_speakers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Compare the number of Hindi speakers in rural vs 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 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 t.name, 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 = 'Hindi' AND t.name IN ('Rural', 'Urban');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which religious group has the highest workforce participation in India?`\n\n### Database Schema\nThis query 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 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 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 rel.religion_name, (SUM(rs.tot_work_p) * 100.0 / NULLIF(SUM(rs.tot_p), 0)) as work_participation_rate 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 = 'India' AND t.name = 'Total' GROUP BY rel.religion_name ORDER BY work_participation_rate DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many women are non-workers among the Sikh population in 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 rs.non_work_f 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 = 'Sikh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of literate Buddhist men?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, SUM(rs.m_lit) AS literate_buddhist_men 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 rel.religion_name = 'Buddhist' AND t.name = 'Total' GROUP BY r.area_name ORDER BY literate_buddhist_men DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Bodo in 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 = 'Bodo' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the most Manipuri speakers?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(ls.person) AS manipuri_speakers 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 l.name = 'Manipuri' AND t.name = 'Total' GROUP BY r.area_name ORDER BY manipuri_speakers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Mizo in 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 = 'Mizo' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the largest population of Khasi speakers?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(ls.person) AS khasi_speakers 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 l.name = 'Khasi' AND t.name = 'Total' GROUP BY r.area_name ORDER BY khasi_speakers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Garo speakers live in 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 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 = 'Meghalaya' AND l.name = 'Garo' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the most Bhili/Bhilodi speakers?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(ls.person) AS bhili_speakers 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 l.name = 'Bhili/Bhilodi' AND t.name = 'Total' GROUP BY r.area_name ORDER BY bhili_speakers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Gondi speakers are there in 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 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 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 = 'Chhattisgarh' AND l.name = 'Gondi' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of Kurukh/Oraon speakers?`\n\n### Database Schema\nThis query 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 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, SUM(ls.person) AS kurukh_speakers 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 l.name = 'Kurukh/Oraon' AND t.name = 'Total' GROUP BY r.area_name ORDER BY kurukh_speakers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Mundari in 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 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 = 'Mundari' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the most Ho speakers?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(ls.person) AS ho_speakers 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 l.name = 'Ho' AND t.name = 'Total' GROUP BY r.area_name ORDER BY ho_speakers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Khandeshi speakers are there in 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 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 = 'Khandeshi' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which religious community has the most people living in rural India?`\n\n### Database Schema\nThis query 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 rel.religion_name, SUM(rs.tot_p) AS rural_population 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 = 'India' AND t.name = 'Rural' GROUP BY rel.religion_name ORDER BY rural_population DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which religious community is the most urbanized in India?`\n\n### Database Schema\nThis query 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 rel.religion_name, (SUM(CASE WHEN t.name = 'Urban' THEN rs.tot_p ELSE 0 END) * 100.0 / NULLIF(SUM(rs.tot_p), 0)) AS urbanization_rate 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 = 'India' GROUP BY rel.religion_name ORDER BY urbanization_rate DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Jain women are literate in 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 population_stats (state 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.f_lit 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 = 'Jain' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of Christian men?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(rs.tot_m) AS christian_men 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 rel.religion_name = 'Christian' AND t.name = 'Total' GROUP BY r.area_name ORDER BY christian_men DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Muslim men are illiterate in 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 population_stats (state 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.m_ill 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 = 'Muslim' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the overall literacy rate in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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 (SUM(e.literates_person) * 100.0 / NULLIF(SUM(e.total_person), 0)) 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`Calculate the literacy rate for 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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 (SUM(e.literates_person) * 100.0 / NULLIF(SUM(e.total_person), 0)) 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`Compare the average literacy rate between urban and rural areas across India.`\n\n### Database Schema\nThis query 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 population_stats (state 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 t.name, (SUM(e.literates_person) * 100.0 / NULLIF(SUM(e.total_person), 0)) AS literacy_rate FROM education_stats e JOIN tru t ON e.tru_id = t.id WHERE t.name IN ('Rural', 'Urban') GROUP BY t.name;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest overall literacy rate?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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, (SUM(e.literates_person) * 100.0 / NULLIF(SUM(e.total_person), 0)) AS literacy_rate FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY literacy_rate DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest overall literacy rate?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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, (SUM(e.literates_person) * 100.0 / NULLIF(SUM(e.total_person), 0)) AS literacy_rate FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY literacy_rate ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the literacy rate higher for women or men in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 (SUM(e.literates_female) * 100.0 / NULLIF(SUM(e.total_female), 0)) AS female_rate, (SUM(e.literates_male) * 100.0 / NULLIF(SUM(e.total_male), 0)) AS male_rate 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy rate for women in 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 (SUM(e.literates_female) * 100.0 / NULLIF(SUM(e.total_female), 0)) 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy rate for men in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 (SUM(e.literates_male) * 100.0 / NULLIF(SUM(e.total_male), 0)) 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy rate in rural 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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 (SUM(e.literates_person) * 100.0 / NULLIF(SUM(e.total_person), 0)) 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 = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest urban literacy rate?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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, (SUM(e.literates_person) * 100.0 / NULLIF(SUM(e.total_person), 0)) AS urban_literacy FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Urban' GROUP BY r.area_name ORDER BY urban_literacy DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total illiterate population in India?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 SUM(illiterate_persons) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of illiterate people?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, SUM(e.illiterate_persons) AS illiterates FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY illiterates DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of literate people?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, SUM(e.literates_person) AS literates FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY literates DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the worker population ratio in 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ((SUM(e.main_working_person) + SUM(e.marginal_worker_person)) * 100.0 / NULLIF(SUM(e.total_person), 0)) 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 worker population ratio in 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ((SUM(e.main_working_person) + SUM(e.marginal_worker_person)) * 100.0 / NULLIF(SUM(e.total_person), 0)) 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest worker population ratio?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, ((SUM(e.main_working_person) + SUM(e.marginal_worker_person)) * 100.0 / NULLIF(SUM(e.total_person), 0)) AS wpr FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY wpr DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest worker population ratio?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, ((SUM(e.main_working_person) + SUM(e.marginal_worker_person)) * 100.0 / NULLIF(SUM(e.total_person), 0)) AS wpr FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY wpr ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many main workers are there in 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 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 SUM(e.main_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`How many marginal workers are there in 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 SUM(e.marginal_worker_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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of main workers in India?`\n\n### Database Schema\nThis query 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 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 SUM(main_working_person) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of non-workers in India?`\n\n### Database Schema\nThis query 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 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 SUM(non_working_person) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Is the worker population ratio higher in urban or rural areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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 t.name, ((SUM(e.main_working_person) + SUM(e.marginal_worker_person)) * 100.0 / NULLIF(SUM(e.total_person), 0)) AS wpr FROM education_stats e JOIN tru t ON e.tru_id = t.id WHERE t.name IN ('Rural', 'Urban') GROUP BY t.name;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy rate in 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 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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 (SUM(e.literates_person) * 100.0 / NULLIF(SUM(e.total_person), 0)) 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 = 'Karnataka' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy rate in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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 (SUM(e.literates_person) * 100.0 / NULLIF(SUM(e.total_person), 0)) 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the largest gap between male and female literacy rates?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, ABS((SUM(e.literates_male) * 100.0 / NULLIF(SUM(e.total_male), 0)) - (SUM(e.literates_female) * 100.0 / NULLIF(SUM(e.total_female), 0))) AS gender_gap FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY gender_gap DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy rate in 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 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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 (SUM(e.literates_person) * 100.0 / NULLIF(SUM(e.total_person), 0)) 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 = 'Odisha' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy rate in urban 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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 (SUM(e.literates_person) * 100.0 / NULLIF(SUM(e.total_person), 0)) 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 literacy rate in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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 (SUM(e.literates_person) * 100.0 / NULLIF(SUM(e.total_person), 0)) 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`What is the worker population ratio in 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 population_stats (state 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 ((SUM(e.main_working_person) + SUM(e.marginal_worker_person)) * 100.0 / NULLIF(SUM(e.total_person), 0)) 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the worker population ratio in 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ((SUM(e.main_working_person) + SUM(e.marginal_worker_person)) * 100.0 / NULLIF(SUM(e.total_person), 0)) 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest count of main workers?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(e.main_working_person) AS main_workers FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY main_workers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest count of marginal workers?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(e.marginal_worker_person) AS marginal_workers FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY marginal_workers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest count of non-workers?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(e.non_working_person) AS non_workers FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY non_workers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the female worker population ratio in 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ((SUM(e.main_working_female) + SUM(e.marginal_worker_female)) * 100.0 / NULLIF(SUM(e.total_female), 0)) 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 male worker population ratio in 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ((SUM(e.main_working_male) + SUM(e.marginal_worker_male)) * 100.0 / NULLIF(SUM(e.total_male), 0)) 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 literacy rate in 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 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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 (SUM(e.literates_person) * 100.0 / NULLIF(SUM(e.total_person), 0)) 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 = 'Andhra Pradesh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy rate in Telangana?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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 (SUM(e.literates_person) * 100.0 / NULLIF(SUM(e.total_person), 0)) 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 = 'Telangana' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest male literacy rate?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, (SUM(e.literates_male) * 100.0 / NULLIF(SUM(e.total_male), 0)) AS male_lit FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY male_lit DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest female literacy rate?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, (SUM(e.literates_female) * 100.0 / NULLIF(SUM(e.total_female), 0)) AS female_lit FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY female_lit DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the worker population ratio in 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 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ((SUM(e.main_working_person) + SUM(e.marginal_worker_person)) * 100.0 / NULLIF(SUM(e.total_person), 0)) 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 = 'Karnataka' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the worker population ratio in 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 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ((SUM(e.main_working_person) + SUM(e.marginal_worker_person)) * 100.0 / NULLIF(SUM(e.total_person), 0)) 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 = 'Andhra Pradesh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people are working (main + marginal) in India?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT SUM(main_working_person + marginal_worker_person) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of non-working people in India?`\n\n### Database Schema\nThis query 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 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 SUM(non_working_person) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of marginal workers in 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 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 SUM(e.marginal_worker_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 total number of main workers in 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 population_stats (state 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 SUM(e.main_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 = 'Tamil Nadu' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy rate in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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 (SUM(e.literates_person) * 100.0 / NULLIF(SUM(e.total_person), 0)) 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`What is the literacy rate in 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 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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 (SUM(e.literates_person) * 100.0 / NULLIF(SUM(e.total_person), 0)) 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 = 'Haryana' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest urban female literacy rate?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, (SUM(e.literates_female) * 100.0 / NULLIF(SUM(e.total_female), 0)) AS urban_female_lit FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Urban' GROUP BY r.area_name ORDER BY urban_female_lit DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest rural male literacy rate?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, (SUM(e.literates_male) * 100.0 / NULLIF(SUM(e.total_male), 0)) AS rural_male_lit FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Rural' GROUP BY r.area_name ORDER BY rural_male_lit DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the worker population ratio in 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ((SUM(e.main_working_person) + SUM(e.marginal_worker_person)) * 100.0 / NULLIF(SUM(e.total_person), 0)) 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 worker population ratio in 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ((SUM(e.main_working_person) + SUM(e.marginal_worker_person)) * 100.0 / NULLIF(SUM(e.total_person), 0)) 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of female workers?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(e.main_working_female + e.marginal_worker_female) AS female_workers FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY female_workers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of male workers?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(e.main_working_male + e.marginal_worker_male) AS male_workers FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY male_workers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the worker population ratio in rural India?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ((SUM(e.main_working_person) + SUM(e.marginal_worker_person)) * 100.0 / NULLIF(SUM(e.total_person), 0)) FROM education_stats e JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the worker population ratio in urban India?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ((SUM(e.main_working_person) + SUM(e.marginal_worker_person)) * 100.0 / NULLIF(SUM(e.total_person), 0)) FROM education_stats e JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest literacy among women?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, (SUM(e.literates_female) * 100.0 / NULLIF(SUM(e.total_female), 0)) AS lit_rate FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY lit_rate DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest literacy among women?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, (SUM(e.literates_female) * 100.0 / NULLIF(SUM(e.total_female), 0)) AS lit_rate FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY lit_rate ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest literacy among men?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, (SUM(e.literates_male) * 100.0 / NULLIF(SUM(e.total_male), 0)) AS lit_rate FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY lit_rate DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest literacy among men?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, (SUM(e.literates_male) * 100.0 / NULLIF(SUM(e.total_male), 0)) AS lit_rate FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY lit_rate ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of literate males in India?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 SUM(literates_male) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of literate females in India?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 SUM(literates_female) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of main workers in rural areas?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(e.main_working_person) AS rural_main_workers FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Rural' GROUP BY r.area_name ORDER BY rural_main_workers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of marginal workers in urban areas?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(e.marginal_worker_person) AS urban_marginal_workers FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Urban' GROUP BY r.area_name ORDER BY urban_marginal_workers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of main workers in the total workforce?`\n\n### Database Schema\nThis query 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 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 (SUM(main_working_person) * 100.0 / NULLIF(SUM(main_working_person + marginal_worker_person), 0)) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the percentage of marginal workers in the total workforce?`\n\n### Database Schema\nThis query 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 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 (SUM(marginal_worker_person) * 100.0 / NULLIF(SUM(main_working_person + marginal_worker_person), 0)) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many women are working as main or marginal workers in urban areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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 SUM(e.main_working_female + e.marginal_worker_female) FROM education_stats e JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many men are working as main or marginal workers in rural areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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 SUM(e.main_working_male + e.marginal_worker_male) FROM education_stats e JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of non-workers in rural areas?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(e.non_working_person) AS rural_non_workers FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Rural' GROUP BY r.area_name ORDER BY rural_non_workers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of non-workers in urban areas?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(e.non_working_person) AS urban_non_workers FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Urban' GROUP BY r.area_name ORDER BY urban_non_workers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the best female-to-male literacy ratio?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, (SUM(e.literates_female) * 1.0 / NULLIF(SUM(e.literates_male), 0)) AS ratio FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY ratio DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the worst female-to-male literacy ratio?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, (SUM(e.literates_female) * 1.0 / NULLIF(SUM(e.literates_male), 0)) AS ratio FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY ratio ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy rate gap between urban and rural India?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 ABS((SUM(CASE WHEN t.name = 'Urban' THEN e.literates_person ELSE 0 END) * 100.0 / NULLIF(SUM(CASE WHEN t.name = 'Urban' THEN e.total_person ELSE 0 END), 0)) - (SUM(CASE WHEN t.name = 'Rural' THEN e.literates_person ELSE 0 END) * 100.0 / NULLIF(SUM(CASE WHEN t.name = 'Rural' THEN e.total_person ELSE 0 END), 0))) FROM education_stats e JOIN tru t ON e.tru_id = t.id;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the largest urban population of non-workers?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(e.non_working_person) AS urban_non_workers FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Urban' GROUP BY r.area_name ORDER BY urban_non_workers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the largest rural population of main workers?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(e.main_working_person) AS rural_main_workers FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Rural' GROUP BY r.area_name ORDER BY rural_main_workers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of illiterate women in India?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 SUM(illiterate_female) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of illiterate men in India?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 SUM(illiterate_male) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of female non-workers?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(e.non_working_female) AS female_non_workers FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY female_non_workers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of male non-workers?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(e.non_working_male) AS male_non_workers FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY male_non_workers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the average number of main workers per state?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT AVG(main_workers) FROM (SELECT SUM(main_working_person) as main_workers FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name) sub;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the average number of marginal workers per state?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT AVG(marginal_workers) FROM (SELECT SUM(marginal_worker_person) as marginal_workers FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name) sub;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest proportion of marginal workers to total workers?`\n\n### Database Schema\nThis query 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 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 r.area_name, (SUM(e.marginal_worker_person) * 100.0 / NULLIF(SUM(e.main_working_person + e.marginal_worker_person), 0)) AS marginal_ratio FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY marginal_ratio DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest proportion of non-workers?`\n\n### Database Schema\nThis query 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 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 r.area_name, (SUM(e.non_working_person) * 100.0 / NULLIF(SUM(e.total_person), 0)) AS non_work_rate FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY non_work_rate ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total population of workers (main + marginal) 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 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 SUM(e.main_working_person + e.marginal_worker_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`What is the total population of workers (main + marginal) 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 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 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 SUM(e.main_working_person + e.marginal_worker_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 = 'Karnataka' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of literate people in rural areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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, SUM(e.literates_person) AS rural_literates FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Rural' GROUP BY r.area_name ORDER BY rural_literates DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest number of literate people in urban areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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, SUM(e.literates_person) AS urban_literates FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Urban' GROUP BY r.area_name ORDER BY urban_literates ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the ratio of main workers to non-workers in India?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT (SUM(main_working_person) * 1.0 / NULLIF(SUM(non_working_person), 0)) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest count of main workers among women?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(e.main_working_female) AS female_main_workers FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY female_main_workers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest count of marginal workers among men?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(e.marginal_worker_male) AS male_marginal_workers FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY male_marginal_workers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of illiterate people in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 SUM(e.illiterate_persons) 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 number of literate people in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 SUM(e.literates_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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of people working in household industries (Main)?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(e.main_household_industries_person) AS val FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY val DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of agricultural labourers (Main)?`\n\n### Database Schema\nThis query 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 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 r.area_name, SUM(e.main_agricultural_labourers_person) AS val FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY val DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of cultivators (Main)?`\n\n### Database Schema\nThis query 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 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 r.area_name, SUM(e.main_cultivator_person) AS val FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY val DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of other workers (Main)?`\n\n### Database Schema\nThis query 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 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 r.area_name, SUM(e.main_other_workers_person) AS val FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY val DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people in India are engaged in household industries (Marginal)?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT SUM(marginal_household_industries_person) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people in India are engaged as agricultural labourers (Marginal)?`\n\n### Database Schema\nThis query 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 population_stats (state 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 SUM(marginal_agriculture_labourers_person) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people in India are engaged as cultivators (Marginal)?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT SUM(marginal_cultivator_person) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of female cultivators in India?`\n\n### Database Schema\nThis query 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 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 SUM(main_cultivator_female + marginal_cultivator_female) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of male agricultural labourers in India?`\n\n### Database Schema\nThis query 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 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 SUM(main_agricultural_labourers_male + marginal_agriculture_labourers_male) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of female main workers?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(e.main_working_female) AS val FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY val DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of male marginal workers?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(e.marginal_worker_male) AS val FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY val DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy rate in the state with the highest population?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 (SUM(e.literates_person) * 100.0 / NULLIF(SUM(e.total_person), 0)) FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' AND r.state = (SELECT state FROM population_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total') ORDER BY persons DESC LIMIT 1);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the worker population ratio in the state with the lowest population?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ((SUM(e.main_working_person) + SUM(e.marginal_worker_person)) * 100.0 / NULLIF(SUM(e.total_person), 0)) FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' AND r.state = (SELECT state FROM population_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total') ORDER BY persons ASC LIMIT 1);"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many women in India are non-workers?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT SUM(non_working_female) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many men in India are non-workers?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT SUM(non_working_male) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of literate women in rural areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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, SUM(e.literates_female) AS rural_lit_women FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Rural' GROUP BY r.area_name ORDER BY rural_lit_women DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of literate men in urban areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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, SUM(e.literates_male) AS urban_lit_men FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Urban' GROUP BY r.area_name ORDER BY urban_lit_men DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of main workers in the southern states (Tamil Nadu, Kerala, Karnataka, Andhra Pradesh, Telangana)?`\n\n### Database Schema\nThis query 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 SUM(e.main_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 IN ('Tamil Nadu', 'Kerala', 'Karnataka', 'Andhra Pradesh', 'Telangana') AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of marginal workers in the northern states (Punjab, Haryana, Uttar Pradesh, 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 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 SUM(e.marginal_worker_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 IN ('Punjab', 'Haryana', 'Uttar Pradesh', 'Rajasthan') AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of female cultivators (Main)?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(e.main_cultivator_female) AS val FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY val DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of male household industry workers (Main)?`\n\n### Database Schema\nThis query 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(e.main_household_industries_male) AS val FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY val DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of marginal workers in rural India?`\n\n### Database Schema\nThis query 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 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 SUM(marginal_worker_person) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Rural');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of main workers in urban India?`\n\n### Database Schema\nThis query 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 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 SUM(main_working_person) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Urban');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of female workers (Main + Marginal)?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, (SUM(e.total_worker_female) * 100.0 / NULLIF(SUM(e.total_worker_person), 0)) AS female_pct FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY female_pct DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest percentage of female workers (Main + Marginal)?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, (SUM(e.total_worker_female) * 100.0 / NULLIF(SUM(e.total_worker_person), 0)) AS female_pct FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY female_pct ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy rate of the total workforce in India?`\n\n### Database Schema\nThis query 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 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 (SUM(e.literates_person) * 100.0 / NULLIF(SUM(e.total_worker_person), 0)) FROM education_stats e JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of illiterate workers (Main + Marginal)?`\n\n### Database Schema\nThis query 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 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 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, SUM(e.illiterate_persons) AS ill_workers FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY ill_workers DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of other workers (Main) in India?`\n\n### Database Schema\nThis query 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 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 SUM(main_other_workers_person) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of other workers (Marginal) in India?`\n\n### Database Schema\nThis query 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 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 SUM(marginal_other_workers_person) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of marginal agricultural labourers?`\n\n### Database Schema\nThis query 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 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 r.area_name, SUM(e.marginal_agriculture_labourers_person) AS val FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY val DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of marginal household industry workers?`\n\n### Database Schema\nThis query 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 r.area_name, SUM(e.marginal_household_industries_person) AS val FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY val DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the ratio of cultivators to agricultural labourers in India?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT (SUM(main_cultivator_person + marginal_cultivator_person) * 1.0 / NULLIF(SUM(main_agricultural_labourers_person + marginal_agriculture_labourers_person), 0)) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest ratio of main workers to marginal workers?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, (SUM(e.main_working_person) * 1.0 / NULLIF(SUM(e.marginal_worker_person), 0)) AS ratio FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY ratio DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest ratio of main workers to marginal workers?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, (SUM(e.main_working_person) * 1.0 / NULLIF(SUM(e.marginal_worker_person), 0)) AS ratio FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY ratio ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of female marginal workers in rural areas?`\n\n### Database Schema\nThis query 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 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 SUM(marginal_worker_female) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Rural');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of male main workers in urban areas?`\n\n### Database Schema\nThis query 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 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 SUM(main_working_male) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Urban');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of female non-workers in urban areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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, SUM(e.non_working_female) AS urban_fem_nonwork FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Urban' GROUP BY r.area_name ORDER BY urban_fem_nonwork DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of male non-workers in rural areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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, SUM(e.non_working_male) AS rural_male_nonwork FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Rural' GROUP BY r.area_name ORDER BY rural_male_nonwork DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of workers (Main + Marginal) in North East India?`\n\n### Database Schema\nThis query 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 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 SUM(e.total_worker_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 IN ('Arunachal Pradesh', 'Assam', 'Manipur', 'Meghalaya', 'Mizoram', 'Nagaland', 'Sikkim', 'Tripura') AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest literacy rate among rural females?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, (SUM(e.literates_female) * 100.0 / NULLIF(SUM(e.total_female), 0)) AS lit_rate FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Rural' GROUP BY r.area_name ORDER BY lit_rate DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest literacy rate among urban males?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, (SUM(e.literates_male) * 100.0 / NULLIF(SUM(e.total_male), 0)) AS lit_rate FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Urban' GROUP BY r.area_name ORDER BY lit_rate ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the difference in worker population ratio between males and females in India?`\n\n### Database Schema\nThis query 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT ABS((SUM(main_working_male + marginal_worker_male) * 100.0 / NULLIF(SUM(total_male), 0)) - (SUM(main_working_female + marginal_worker_female) * 100.0 / NULLIF(SUM(total_female), 0))) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of marginal workers working less than 3 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 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 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT r.area_name, SUM(e.marginal_worker_population_0_3_person) AS val FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY val DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of marginal workers working 3-6 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 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 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 r.area_name, SUM(e.marginal_worker_population_3_6_person) AS val FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY val DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of household industry workers (Main + Marginal) in India?`\n\n### Database Schema\nThis query 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 SUM(main_household_industries_person + marginal_household_industries_person) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of cultivators (Main + Marginal) in India?`\n\n### Database Schema\nThis query 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 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 SUM(main_cultivator_person + marginal_cultivator_person) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of agricultural labourers (Main + Marginal) in India?`\n\n### Database Schema\nThis query 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 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 SUM(main_agricultural_labourers_person + marginal_agriculture_labourers_person) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest proportion of agricultural labourers to total workers?`\n\n### Database Schema\nThis query 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 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 r.area_name, (SUM(e.main_agricultural_labourers_person + e.marginal_agriculture_labourers_person) * 100.0 / NULLIF(SUM(e.total_worker_person), 0)) AS pct FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY pct DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest proportion of household industry workers to total workers?`\n\n### Database Schema\nThis query 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 r.area_name, (SUM(e.main_household_industries_person + e.marginal_household_industries_person) * 100.0 / NULLIF(SUM(e.total_worker_person), 0)) AS pct FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY pct DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of illiterate females in rural India?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 SUM(illiterate_female) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Rural');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of literate males in urban India?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 SUM(literates_male) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Urban');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of female main workers in rural areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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, SUM(e.main_working_female) AS val FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Rural' GROUP BY r.area_name ORDER BY val DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of male marginal workers in urban areas?`\n\n### Database Schema\nThis query 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 population_stats (state 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, SUM(e.marginal_worker_male) AS val FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Urban' GROUP BY r.area_name ORDER BY val DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of non-workers in the state with the highest literacy rate?`\n\n### Database Schema\nThis query 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 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 SUM(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 t.name = 'Total' AND r.area_name = 'Kerala';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of workers in the state with the lowest literacy rate?`\n\n### Database Schema\nThis query 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 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 SUM(e.total_worker_person) FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' AND r.area_name = 'Bihar';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of scheduled caste literates?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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, SUM(e.scheduled_castes_person) AS val FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY val DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of scheduled tribe literates?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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, SUM(e.scheduled_tribes_person) AS val FROM education_stats e JOIN regions r ON e.state = r.state JOIN tru t ON e.tru_id = t.id WHERE t.name = 'Total' GROUP BY r.area_name ORDER BY val DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy rate among scheduled castes in India?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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 (SUM(literates_person) * 100.0 / NULLIF(SUM(scheduled_castes_person), 0)) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy rate among scheduled tribes in India?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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 (SUM(literates_person) * 100.0 / NULLIF(SUM(scheduled_tribes_person), 0)) FROM education_stats WHERE tru_id = (SELECT id FROM tru WHERE name = 'Total');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Muslims live in 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 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Count the number of Hindi speakers in 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 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 = 'Uttar Pradesh' AND l.name = 'Hindi' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Christians live in rural areas compared to urban areas in 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 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 t.name AS area_type, 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 = 'Christian' AND t.name IN ('Rural', 'Urban');"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What are the top 3 most spoken languages in 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 l.name, 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 t.name = 'Total' ORDER BY ls.person DESC LIMIT 3;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which religious group has the highest literacy rate across India?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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 rel.religion_name, (SUM(rs.p_lit) * 100.0 / NULLIF(SUM(rs.tot_p), 0)) as literacy_rate 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 = 'India' AND t.name = 'Total' GROUP BY rel.religion_name ORDER BY literacy_rate DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many women list Tamil as their main language in 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 population_stats (state 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.female 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 = 'Tamil Nadu' AND l.name = 'Tamil' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Find the total number of Jains in Maharashtra who aren't working.`\n\n### Database Schema\nThis query 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 rs.non_work_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 = 'Jain' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many villagers in West Bengal speak Bengali?`\n\n### Database Schema\nThis query 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 = 'Bengali' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has a larger Sikh population: Punjab or 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 r.area_name, 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 rel.religion_name = 'Sikh' AND r.area_name IN ('Punjab', 'Haryana') AND t.name = 'Total' ORDER BY rs.tot_p DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the difference between male and female literacy numbers for Hindus in India?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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.m_lit - rs.f_lit) as literacy_gap 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 = 'India' AND rel.religion_name = 'Hindu' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Marathi in 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 = 'Marathi' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Buddhist population in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 = 'Sikkim' AND rel.religion_name = 'Buddhist' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Are there more Hindi speakers in Madhya Pradesh or 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 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, 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 l.name = 'Hindi' AND r.area_name IN ('Madhya Pradesh', 'Rajasthan') AND t.name = 'Total' ORDER BY ls.person DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Jains live in the cities of 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 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 = 'Jain' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy rate of Christians in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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 (SUM(rs.p_lit) * 100.0 / NULLIF(SUM(rs.tot_p), 0)) as literacy_rate 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Compare the number of male and female Urdu speakers in Telangana.`\n\n### Database Schema\nThis query 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.male, ls.female 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 = 'Telangana' AND l.name = 'Urdu' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Sikhs in Punjab are currently working?`\n\n### Database Schema\nThis query 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 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_work_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 = 'Sikh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which 3 states have the highest number of English speakers?`\n\n### Database Schema\nThis query 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 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, 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 l.name = 'English' AND t.name = 'Total' ORDER BY ls.person DESC LIMIT 3;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Buddhists live in the villages of 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 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 = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the second most spoken language in 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 religions (id BIGINT PRIMARY KEY, religion_name TEXT);\nCREATE TABLE tru (id BIGINT PRIMARY KEY, name TEXT);\n\n### SQL\nSELECT l.name, 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 = 'Tamil Nadu' AND t.name = 'Total' ORDER BY ls.person DESC OFFSET 1 LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Are there more men or women among the Muslim population in 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 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_m, rs.tot_f 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Telugu in 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 = 'Telugu' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Hindu population in 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 = 'Hindu' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the gap between literate men and women for Buddhists in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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.m_lit - rs.f_lit) as lit_gap 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Gujarati in urban areas of 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 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 population_stats (state 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 = 'Gujarati' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Sikhs live in 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 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`How many Muslims in Bihar are not working?`\n\n### Database Schema\nThis query 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 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.non_work_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 = 'Muslim' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Malayalam speakers live in 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 = 'Malayalam' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Do more people speak Kannada or Telugu in 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 l.name, 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 IN ('Kannada', 'Telugu') AND t.name = 'Total' ORDER BY ls.person DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest population of Christians?`\n\n### Database Schema\nThis query 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 r.area_name, 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 rel.religion_name = 'Christian' AND t.name = 'Total' ORDER BY rs.tot_p DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of Urdu speakers?`\n\n### Database Schema\nThis query 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 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, 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 l.name = 'Urdu' AND t.name = 'Total' ORDER BY ls.person DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Jains live in the rural areas of 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 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 population_stats (state 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 = 'Jain' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy rate of Muslim women in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 (SUM(rs.f_lit) * 100.0 / NULLIF(SUM(rs.tot_f), 0)) as female_literacy_rate 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Bengali in 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 = 'Bengali' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Are there more Christians in Nagaland or 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 r.area_name, 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 rel.religion_name = 'Christian' AND r.area_name IN ('Nagaland', 'Mizoram') AND t.name = 'Total' ORDER BY rs.tot_p DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many men speak English in 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.male 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 = 'English' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Sikh population in 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 = 'Sikh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Find the number of illiterate Hindus in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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.p_ill 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 = 'Hindu' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Kannada in the cities of 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 = 'Kannada' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which 3 states have the largest Buddhist populations?`\n\n### Database Schema\nThis query 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 r.area_name, 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 rel.religion_name = 'Buddhist' AND t.name = 'Total' ORDER BY rs.tot_p DESC LIMIT 3;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many women speak Malayalam in 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.female 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 = 'Malayalam' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the work participation rate for Jains in 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 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 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 (SUM(rs.tot_work_p) * 100.0 / NULLIF(SUM(rs.tot_p), 0)) as work_participation_rate 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 = 'Jain' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Punjabi in 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 = 'Punjabi' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Count the number of Muslims in West Bengal's villages.`\n\n### Database Schema\nThis query 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 = 'West Bengal' AND rel.religion_name = 'Muslim' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which language is spoken more in Andhra Pradesh: Telugu or Urdu?`\n\n### Database Schema\nThis query 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 l.name, 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 IN ('Telugu', 'Urdu') AND t.name = 'Total' ORDER BY ls.person DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Christian men live in 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_m 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total population of Parsis (Zoroastrians) in 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 = 'Zoroastrian' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Hindi speakers live in the rural parts of 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 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 = 'Hindi' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest literacy rate for Buddhists?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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, (SUM(rs.p_lit) * 100.0 / NULLIF(SUM(rs.tot_p), 0)) as literacy_rate 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 rel.religion_name = 'Buddhist' AND t.name = 'Total' GROUP BY r.area_name ORDER BY literacy_rate ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Odia in 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 = 'Odia' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the sex ratio of Sikhs in 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 (SUM(rs.tot_f) * 1000.0 / NULLIF(SUM(rs.tot_m), 0)) as sex_ratio 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 = 'Sikh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Jains are working in 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 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_work_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 = 'Jain' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Are there more female Hindi speakers in Bihar or 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 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, ls.female 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 l.name = 'Hindi' AND r.area_name IN ('Bihar', 'Uttar Pradesh') AND t.name = 'Total' ORDER BY ls.female DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Konkani in 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 = 'Konkani' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Muslim population in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 = 'Jammu & Kashmir' AND rel.religion_name = 'Muslim' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many literate Christian women are there in 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 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 rs.f_lit 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`Which 5 states have the most Marathi speakers?`\n\n### Database Schema\nThis query 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 r.area_name, 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 l.name = 'Marathi' AND t.name = 'Total' ORDER BY ls.person DESC LIMIT 5;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Tamil in the urban areas 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 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 = 'Tamil' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Count the number of Buddhist men in 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_m 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the difference in literacy rates between Jain men and women in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 ((SUM(rs.m_lit) * 100.0 / NULLIF(SUM(rs.tot_m), 0)) - (SUM(rs.f_lit) * 100.0 / NULLIF(SUM(rs.tot_f), 0))) as lit_gap 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 = 'Jain' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Assamese in 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which religion has the highest percentage of non-workers in 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 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 rel.religion_name, (SUM(rs.non_work_p) * 100.0 / NULLIF(SUM(rs.tot_p), 0)) as non_work_rate 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 t.name = 'Total' GROUP BY rel.religion_name ORDER BY non_work_rate DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Urdu speakers live in 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Hindu population in the cities of 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 = 'West Bengal' 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 Gujarati in 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 = 'Gujarati' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Are there more Sikhs in Rajasthan or 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 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, 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 rel.religion_name = 'Sikh' AND r.area_name IN ('Rajasthan', 'Himachal Pradesh') AND t.name = 'Total' ORDER BY rs.tot_p DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many women speak Telugu in Telangana?`\n\n### Database Schema\nThis query 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.female 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 = 'Telangana' AND l.name = 'Telugu' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy rate of the total population in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 (SUM(rs.p_lit) * 100.0 / NULLIF(SUM(rs.tot_p), 0)) as literacy_rate FROM religion_stats rs JOIN regions r ON rs.state = r.state JOIN tru t ON rs.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 people speak Sindhi in 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 = 'Sindhi' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of Sanskrit speakers?`\n\n### Database Schema\nThis query 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 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, 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 l.name = 'Sanskrit' AND t.name = 'Total' ORDER BY ls.person DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Nepali in 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 = 'Nepali' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Christian population in 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`Are there more Buddhist men or women in 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 rs.tot_m, rs.tot_f 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Dogri in 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 = 'Dogri' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy rate of Jains in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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 (SUM(rs.p_lit) * 100.0 / NULLIF(SUM(rs.tot_p), 0)) as literacy_rate 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 = 'Jain' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Urdu speakers live in the cities of 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 = 'Urdu' AND t.name = 'Urban';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of Maithili speakers?`\n\n### Database Schema\nThis query 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 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, 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 l.name = 'Maithili' AND t.name = 'Total' ORDER BY ls.person DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Sikhs live in the villages of 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 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 = 'Sikh' AND t.name = 'Rural';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the sex ratio of Muslims in 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 (SUM(rs.tot_f) * 1000.0 / NULLIF(SUM(rs.tot_m), 0)) as sex_ratio 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Konkani in 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 = 'Konkani' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total number of Jain women in 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_f 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 = 'Jain' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has more English speakers: Tamil Nadu or 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 r.area_name, 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 l.name = 'English' AND r.area_name IN ('Tamil Nadu', 'Karnataka') AND t.name = 'Total' ORDER BY ls.person DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Manipuri in 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 = 'Manipuri' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy gap between Hindu men and women in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 ((SUM(rs.m_lit) * 100.0 / NULLIF(SUM(rs.tot_m), 0)) - (SUM(rs.f_lit) * 100.0 / NULLIF(SUM(rs.tot_f), 0))) as lit_gap 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 = 'Hindu' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Buddhists live in 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 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 = 'Himachal Pradesh' AND rel.religion_name = 'Buddhist' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Bodo in 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 = 'Bodo' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Are there more Sikh men in Punjab or 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 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, rs.tot_m 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 rel.religion_name = 'Sikh' AND r.area_name IN ('Punjab', 'Haryana') AND t.name = 'Total' ORDER BY rs.tot_m DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Santhali in 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 = 'Santhali' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Muslim population in 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 = 'Muslim' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many women speak Gujarati in 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.female 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 = 'Gujarati' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest percentage of literate Jains?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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, (SUM(rs.p_lit) * 100.0 / NULLIF(SUM(rs.tot_p), 0)) as literacy_rate 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 rel.religion_name = 'Jain' AND t.name = 'Total' GROUP BY r.area_name ORDER BY literacy_rate DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Kashmiri in 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 = 'Kashmiri' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the workforce participation rate of Christians in 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 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 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 (SUM(rs.tot_work_p) * 100.0 / NULLIF(SUM(rs.tot_p), 0)) as work_participation_rate 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 = 'Christian' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Sindhi in 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 = 'Sindhi' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Are there more rural or urban Hindu speakers in 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 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 t.name, 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 = 'Uttar Pradesh' AND l.name = 'Hindi' AND t.name IN ('Rural', 'Urban') ORDER BY ls.person DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Tulu in 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 = 'Tulu' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total population of Buddhists in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 = 'West Bengal' AND rel.religion_name = 'Buddhist' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many illiterate Muslim women are there in 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 population_stats (state 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.f_ill 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 = 'Muslim' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the largest population of Zoroastrians (Parsis)?`\n\n### Database Schema\nThis query 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 r.area_name, 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 rel.religion_name = 'Zoroastrian' AND t.name = 'Total' ORDER BY rs.tot_p DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Khasi in 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 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 = 'Meghalaya' AND l.name = 'Khasi' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the sex ratio of Jains in 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 (SUM(rs.tot_f) * 1000.0 / NULLIF(SUM(rs.tot_m), 0)) as sex_ratio 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 = 'Jain' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Garo in 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 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 = 'Meghalaya' AND l.name = 'Garo' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Are there more Christians in Kerala or 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 r.area_name, 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 rel.religion_name = 'Christian' AND r.area_name IN ('Kerala', 'Tamil Nadu') AND t.name = 'Total' ORDER BY rs.tot_p DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Mizo in 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 = 'Mizo' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy rate of Sikhs in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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 (SUM(rs.p_lit) * 100.0 / NULLIF(SUM(rs.tot_p), 0)) as literacy_rate 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 = 'Sikh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Kokborok in 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 = 'Kokborok' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which 3 states have the highest number of Urdu speakers?`\n\n### Database Schema\nThis query 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 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, 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 l.name = 'Urdu' AND t.name = 'Total' ORDER BY ls.person DESC LIMIT 3;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many Muslim men are working in 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 rs.tot_work_m 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Punjabi in 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 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 = 'Rajasthan' AND l.name = 'Punjabi' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Jain population in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 = 'Karnataka' AND rel.religion_name = 'Jain' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak English in 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 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 = 'English' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Are there more Buddhist women in Maharashtra or 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 r.area_name, rs.tot_f 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 rel.religion_name = 'Buddhist' AND r.area_name IN ('Maharashtra', 'Sikkim') AND t.name = 'Total' ORDER BY rs.tot_f DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Malayalam in 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 = 'Malayalam' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy gap for Muslims in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 ((SUM(rs.m_lit) * 100.0 / NULLIF(SUM(rs.tot_m), 0)) - (SUM(rs.f_lit) * 100.0 / NULLIF(SUM(rs.tot_f), 0))) as lit_gap 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 = 'West Bengal' 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 Bhili/Bhilodi in 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 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 = 'Rajasthan' AND l.name = 'Bhili/Bhilodi' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of Christian workers?`\n\n### Database Schema\nThis query 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 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 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, rs.tot_work_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 rel.religion_name = 'Christian' AND t.name = 'Total' ORDER BY rs.tot_work_p DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Gondi in 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 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 = 'Gondi' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Sikh population in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 = 'Uttarakhand' AND rel.religion_name = 'Sikh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Kurukh/Oraon in 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 = 'Kurukh/Oraon' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Are there more urban or rural Jain speakers in 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 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 t.name, 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 = 'Jain' AND t.name IN ('Rural', 'Urban') ORDER BY ls.person DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Mundari in 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 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 = 'Mundari' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the sex ratio of Buddhists in 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 (SUM(rs.tot_f) * 1000.0 / NULLIF(SUM(rs.tot_m), 0)) as sex_ratio 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 = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Ho in 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 = 'Ho' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the lowest literacy rate for Muslims?`\n\n### Database Schema\nThis query 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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, (SUM(rs.p_lit) * 100.0 / NULLIF(SUM(rs.tot_p), 0)) as literacy_rate 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 rel.religion_name = 'Muslim' AND t.name = 'Total' GROUP BY r.area_name ORDER BY literacy_rate ASC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Kui in 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 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 = 'Kui' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Christian population in 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`How many people speak Khandeshi in 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 = 'Khandeshi' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Are there more Hindu men or women in 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_m, rs.tot_f 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 = 'Hindu' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Malto in 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 = 'Malto' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the workforce participation rate of Sikhs in 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 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 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 (SUM(rs.tot_work_p) * 100.0 / NULLIF(SUM(rs.tot_p), 0)) as work_participation_rate 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 = 'Sikh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Kinnauri in 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 = 'Kinnauri' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which state has the highest number of Jain non-workers?`\n\n### Database Schema\nThis query 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 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 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, rs.non_work_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 rel.religion_name = 'Jain' AND t.name = 'Total' ORDER BY rs.non_work_p DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Lushai/Mizo in 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 = 'Lushai/Mizo' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy rate of Buddhists in 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 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 languages (id BIGINT PRIMARY KEY, name TEXT);\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 (SUM(rs.p_lit) * 100.0 / NULLIF(SUM(rs.tot_p), 0)) as literacy_rate 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 = 'Karnataka' AND rel.religion_name = 'Buddhist' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Halabi in 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 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 = 'Chhattisgarh' AND l.name = 'Halabi' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Are there more Christian women in Goa or 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 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, rs.tot_f 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 rel.religion_name = 'Christian' AND r.area_name IN ('Goa', 'Kerala') AND t.name = 'Total' ORDER BY rs.tot_f DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Korku in 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 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 = 'Korku' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Muslim population in 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 = 'Muslim' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Nishi in 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 = 'Nishi' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which 3 states have the highest number of English speaking women?`\n\n### Database Schema\nThis query 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 r.area_name, ls.female 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 l.name = 'English' AND t.name = 'Total' ORDER BY ls.female DESC LIMIT 3;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Ao in 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 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 = 'Ao' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the literacy gap between Sikh men and women in 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 languages (id BIGINT PRIMARY KEY, name TEXT);\nCREATE TABLE population_stats (state 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 ((SUM(rs.m_lit) * 100.0 / NULLIF(SUM(rs.tot_m), 0)) - (SUM(rs.f_lit) * 100.0 / NULLIF(SUM(rs.tot_f), 0))) as lit_gap 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 = 'Sikh' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Sema in 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 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 = 'Sema' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Are there more Jains in Maharashtra or 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 r.area_name, 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 rel.religion_name = 'Jain' AND r.area_name IN ('Maharashtra', 'Madhya Pradesh') AND t.name = 'Total' ORDER BY rs.tot_p DESC;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Angami in 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 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 = 'Angami' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the total Buddhist population in Ladakh?`\n\n### Database Schema\nThis query 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 = 'Ladakh' AND rel.religion_name = 'Buddhist' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Lotha in 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 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 = 'Lotha' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`Which religion has the highest number of workers in Mumbai (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 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 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 rel.religion_name, rs.tot_work_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 t.name = 'Total' ORDER BY rs.tot_work_p DESC LIMIT 1;"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`How many people speak Thado in 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 = 'Thado' AND t.name = 'Total';"} {"text": "### Task\nGenerate a SQL query to answer the following question:\n`What is the sex ratio of Christians in 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 (SUM(rs.tot_f) * 1000.0 / NULLIF(SUM(rs.tot_m), 0)) as sex_ratio 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';"}