chat_prompt
stringlengths
438
1.53k
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"constituency_201_243\" (\n \"constituency_no\" real,\n \"vidhan_sabha_constituency\" text,\n \"reservation_for_sc_st\" text,\n \"district\" text,\n \"lok_sabha\" text\n);\n\nQuestion: What was the Lok Sabha in Karakat (Vidhan Sabha Constituency)?" }, { "role": "assistant", "content": "SELECT \"lok_sabha\" FROM \"constituency_201_243\" WHERE \"vidhan_sabha_constituency\"='Karakat (Vidhan Sabha constituency)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"constituency_201_243\" (\n \"constituency_no\" real,\n \"vidhan_sabha_constituency\" text,\n \"reservation_for_sc_st\" text,\n \"district\" text,\n \"lok_sabha\" text\n);\n\nQuestion: How many were in the Kargahar (vidhan sabha constituency)?" }, { "role": "assistant", "content": "SELECT MIN(\"constituency_no\") FROM \"constituency_201_243\" WHERE \"vidhan_sabha_constituency\"='Kargahar (Vidhan Sabha constituency)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"constituency_201_243\" (\n \"constituency_no\" real,\n \"vidhan_sabha_constituency\" text,\n \"reservation_for_sc_st\" text,\n \"district\" text,\n \"lok_sabha\" text\n);\n\nQuestion: What district has 213 constituents?" }, { "role": "assistant", "content": "SELECT COUNT(\"district\") FROM \"constituency_201_243\" WHERE \"constituency_no\"=213;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"constituency_201_243\" (\n \"constituency_no\" real,\n \"vidhan_sabha_constituency\" text,\n \"reservation_for_sc_st\" text,\n \"district\" text,\n \"lok_sabha\" text\n);\n\nQuestion: How many Lok Sabha are in the one with 216 constituents?" }, { "role": "assistant", "content": "SELECT \"lok_sabha\" FROM \"constituency_201_243\" WHERE \"constituency_no\"=216;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_tourism_expenditure\" (\n \"rank_2012\" real,\n \"country\" text,\n \"unwto_region\" text,\n \"international_tourism_expenditure_2011\" text,\n \"international_tourism_expenditure_2012\" text,\n \"pct_change\" text\n);\n\nQuestion: How many countries spent at least $51.0 billion in international tourism in 2012?" }, { "role": "assistant", "content": "SELECT MAX(\"rank_2012\") FROM \"international_tourism_expenditure\" WHERE \"international_tourism_expenditure_2011\"='$51.0 billion';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_tourism_expenditure\" (\n \"rank_2012\" real,\n \"country\" text,\n \"unwto_region\" text,\n \"international_tourism_expenditure_2011\" text,\n \"international_tourism_expenditure_2012\" text,\n \"pct_change\" text\n);\n\nQuestion: How many countries spent $83.7 billion on international tourism in 2012?" }, { "role": "assistant", "content": "SELECT COUNT(\"pct_change\") FROM \"international_tourism_expenditure\" WHERE \"international_tourism_expenditure_2012\"='$83.7 billion';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_tourism_expenditure\" (\n \"rank_2012\" real,\n \"country\" text,\n \"unwto_region\" text,\n \"international_tourism_expenditure_2011\" text,\n \"international_tourism_expenditure_2012\" text,\n \"pct_change\" text\n);\n\nQuestion: What was the percentage increase in spending on international tourism from 2011 to 2012 of the country that spent $85.9 billion in 2011?" }, { "role": "assistant", "content": "SELECT \"pct_change\" FROM \"international_tourism_expenditure\" WHERE \"international_tourism_expenditure_2011\"='$85.9 billion';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_tourism_expenditure\" (\n \"rank_2012\" real,\n \"country\" text,\n \"unwto_region\" text,\n \"international_tourism_expenditure_2011\" text,\n \"international_tourism_expenditure_2012\" text,\n \"pct_change\" text\n);\n\nQuestion: Which country saw a 5.7% increase in spending on international tourism between 2011 and 2012?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"international_tourism_expenditure\" WHERE \"pct_change\"='5.7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sheffield_united_statistics\" (\n \"season\" text,\n \"division\" text,\n \"league_apps\" real,\n \"league_goals\" real,\n \"fa_cup_apps\" real,\n \"fa_cup_goals\" real,\n \"other_apps\" real,\n \"other_goals\" real,\n \"total_apps\" real,\n \"total_goals\" real\n);\n\nQuestion: Name the most other apps for league goals being 1" }, { "role": "assistant", "content": "SELECT MAX(\"other_apps\") FROM \"sheffield_united_statistics\" WHERE \"league_goals\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sheffield_united_statistics\" (\n \"season\" text,\n \"division\" text,\n \"league_apps\" real,\n \"league_goals\" real,\n \"fa_cup_apps\" real,\n \"fa_cup_goals\" real,\n \"other_apps\" real,\n \"other_goals\" real,\n \"total_apps\" real,\n \"total_goals\" real\n);\n\nQuestion: Name the most fa cup apps for league apps being 27" }, { "role": "assistant", "content": "SELECT MAX(\"fa_cup_apps\") FROM \"sheffield_united_statistics\" WHERE \"league_apps\"=27;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sheffield_united_statistics\" (\n \"season\" text,\n \"division\" text,\n \"league_apps\" real,\n \"league_goals\" real,\n \"fa_cup_apps\" real,\n \"fa_cup_goals\" real,\n \"other_apps\" real,\n \"other_goals\" real,\n \"total_apps\" real,\n \"total_goals\" real\n);\n\nQuestion: Name the total number of division for fa cups being 9" }, { "role": "assistant", "content": "SELECT COUNT(\"division\") FROM \"sheffield_united_statistics\" WHERE \"fa_cup_apps\"=9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_visited_countries_by_international_\" (\n \"rank\" real,\n \"country\" text,\n \"unwto_region\" text,\n \"international_tourist_arrivals_2012\" text,\n \"international_tourist_arrivals_2011\" text,\n \"change_2011_to_2012\" text,\n \"change_2010_to_2011\" text\n);\n\nQuestion: How many international tourists visited Russia in 2012?" }, { "role": "assistant", "content": "SELECT \"international_tourist_arrivals_2012\" FROM \"most_visited_countries_by_international_\" WHERE \"country\"='Russia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_broadcasts\" (\n \"country\" text,\n \"alternante_title\" text,\n \"tv_network_s\" text,\n \"series_premiere\" text,\n \"series_finale\" text\n);\n\nQuestion: What was the premiere date for the episode whose alternate title was mi\u0142o\u015b\u0107 i przeznaczenie?" }, { "role": "assistant", "content": "SELECT \"series_premiere\" FROM \"international_broadcasts\" WHERE \"alternante_title\"='Mi\u0142o\u015b\u0107 i przeznaczenie';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_broadcasts\" (\n \"country\" text,\n \"alternante_title\" text,\n \"tv_network_s\" text,\n \"series_premiere\" text,\n \"series_finale\" text\n);\n\nQuestion: Which TV network had its series finale on May 7, 2012?" }, { "role": "assistant", "content": "SELECT \"tv_network_s\" FROM \"international_broadcasts\" WHERE \"series_finale\"='May 7, 2012';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_broadcasts\" (\n \"country\" text,\n \"alternante_title\" text,\n \"tv_network_s\" text,\n \"series_premiere\" text,\n \"series_finale\" text\n);\n\nQuestion: What was the date of the series premiere whose TV network was TV3?" }, { "role": "assistant", "content": "SELECT \"series_premiere\" FROM \"international_broadcasts\" WHERE \"tv_network_s\"='TV3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_broadcasts\" (\n \"country\" text,\n \"alternante_title\" text,\n \"tv_network_s\" text,\n \"series_premiere\" text,\n \"series_finale\" text\n);\n\nQuestion: Which TV network has a country of origin of Iran?" }, { "role": "assistant", "content": "SELECT \"tv_network_s\" FROM \"international_broadcasts\" WHERE \"country\"='Iran';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_broadcasts\" (\n \"country\" text,\n \"alternante_title\" text,\n \"tv_network_s\" text,\n \"series_premiere\" text,\n \"series_finale\" text\n);\n\nQuestion: What was the date of series premiere for the novela whose alternate title was mi\u0142o\u015b\u0107 i przeznaczenie?" }, { "role": "assistant", "content": "SELECT \"series_premiere\" FROM \"international_broadcasts\" WHERE \"alternante_title\"='Mi\u0142o\u015b\u0107 i przeznaczenie';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_broadcasts\" (\n \"country\" text,\n \"alternante_title\" text,\n \"tv_network_s\" text,\n \"series_premiere\" text,\n \"series_finale\" text\n);\n\nQuestion: What was the date of the series finale for Peru?" }, { "role": "assistant", "content": "SELECT \"series_finale\" FROM \"international_broadcasts\" WHERE \"country\"='Peru';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_29803475_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is every original air date with U.S. viewers of 0.23 million?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_29803475_2\" WHERE \"u_s_viewers_million\"='0.23';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_29803475_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the lowest number in series when U.S. viewers is 0.23 million?" }, { "role": "assistant", "content": "SELECT MIN(\"no_in_series\") FROM \"table1_29803475_2\" WHERE \"u_s_viewers_million\"='0.23';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sheffield_united_statistics\" (\n \"season\" text,\n \"division\" text,\n \"league_apps\" real,\n \"league_goals\" real,\n \"fa_cup_apps\" real,\n \"fa_cup_goals\" real,\n \"other_apps\" real,\n \"other_goals\" real,\n \"total_apps\" real,\n \"total_goals\" real\n);\n\nQuestion: What were the total apps for Dunne in season where he had 0 league goals? " }, { "role": "assistant", "content": "SELECT \"total_apps\" FROM \"sheffield_united_statistics\" WHERE \"league_goals\"=0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sheffield_united_statistics\" (\n \"season\" text,\n \"division\" text,\n \"league_apps\" real,\n \"league_goals\" real,\n \"fa_cup_apps\" real,\n \"fa_cup_goals\" real,\n \"other_apps\" real,\n \"other_goals\" real,\n \"total_apps\" real,\n \"total_goals\" real\n);\n\nQuestion: How many league goals did Dunne have in the season where he had 2 league apps?" }, { "role": "assistant", "content": "SELECT \"league_goals\" FROM \"sheffield_united_statistics\" WHERE \"league_apps\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sheffield_united_statistics\" (\n \"season\" text,\n \"division\" text,\n \"league_apps\" real,\n \"league_goals\" real,\n \"fa_cup_apps\" real,\n \"fa_cup_goals\" real,\n \"other_apps\" real,\n \"other_goals\" real,\n \"total_apps\" real,\n \"total_goals\" real\n);\n\nQuestion: How many other goals did Dunne have in the season where he had 1 league goal?" }, { "role": "assistant", "content": "SELECT \"other_goals\" FROM \"sheffield_united_statistics\" WHERE \"league_goals\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: When boston university is the team what is the record?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"schedule\" WHERE \"team\"='Boston University';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fsfe_examination_result_analysis_2009\" (\n \"subject\" text,\n \"no_sat\" real,\n \"no_passed\" real,\n \"pct_pass\" real,\n \"highest_mark\" real,\n \"lowest_mark\" real,\n \"mean\" real\n);\n\nQuestion: What is the subject when the highest mark is 79?" }, { "role": "assistant", "content": "SELECT \"subject\" FROM \"fsfe_examination_result_analysis_2009\" WHERE \"highest_mark\"=79;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fsfe_examination_result_analysis_2009\" (\n \"subject\" text,\n \"no_sat\" real,\n \"no_passed\" real,\n \"pct_pass\" real,\n \"highest_mark\" real,\n \"lowest_mark\" real,\n \"mean\" real\n);\n\nQuestion: How many lowest mark entries are there when % passed is 76?" }, { "role": "assistant", "content": "SELECT COUNT(\"lowest_mark\") FROM \"fsfe_examination_result_analysis_2009\" WHERE \"pct_pass\"=76;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_29826467_2\" (\n \"rnd\" real,\n \"circuit\" text,\n \"lmp1_winning_team\" text,\n \"lmp2_winning_team\" text,\n \"flm_winning_team\" text,\n \"gte_pro_winning_team\" text,\n \"gte_am_winning_team\" text,\n \"results\" text\n);\n\nQuestion: if the flm winning team is no. 99 jmb racing what is the name of the lmp2 winning team " }, { "role": "assistant", "content": "SELECT \"lmp2_winning_team\" FROM \"table1_29826467_2\" WHERE \"flm_winning_team\"='No. 99 JMB Racing';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who is every high rebound when the team is Mount St. Mary's?" }, { "role": "assistant", "content": "SELECT \"high_rebounds\" FROM \"schedule\" WHERE \"team\"='Mount St. Mary''s';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"giovani_new_generation_section\" (\n \"position\" text,\n \"singer\" text,\n \"2nd_evening\" text,\n \"3rd_evening\" text,\n \"4th_evening\" text,\n \"5th_evening\" text\n);\n\nQuestion: What position was serena abrami in?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"giovani_new_generation_section\" WHERE \"singer\"='Serena Abrami';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"giovani_new_generation_section\" (\n \"position\" text,\n \"singer\" text,\n \"2nd_evening\" text,\n \"3rd_evening\" text,\n \"4th_evening\" text,\n \"5th_evening\" text\n);\n\nQuestion: How many singers got 2nd place in the 4th evening?" }, { "role": "assistant", "content": "SELECT COUNT(\"2nd_evening\") FROM \"giovani_new_generation_section\" WHERE \"4th_evening\"='2nd place';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"giovani_new_generation_section\" (\n \"position\" text,\n \"singer\" text,\n \"2nd_evening\" text,\n \"3rd_evening\" text,\n \"4th_evening\" text,\n \"5th_evening\" text\n);\n\nQuestion: Who got 3rd place on the 4th evening?" }, { "role": "assistant", "content": "SELECT \"singer\" FROM \"giovani_new_generation_section\" WHERE \"4th_evening\"='3rd place';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"giovani_new_generation_section\" (\n \"position\" text,\n \"singer\" text,\n \"2nd_evening\" text,\n \"3rd_evening\" text,\n \"4th_evening\" text,\n \"5th_evening\" text\n);\n\nQuestion: Who went out on the 2nd evening?" }, { "role": "assistant", "content": "SELECT \"singer\" FROM \"giovani_new_generation_section\" WHERE \"2nd_evening\"='Out';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"giovani_new_generation_section\" (\n \"position\" text,\n \"singer\" text,\n \"2nd_evening\" text,\n \"3rd_evening\" text,\n \"4th_evening\" text,\n \"5th_evening\" text\n);\n\nQuestion: What was gabriella ferrone's result on the 5th evening?" }, { "role": "assistant", "content": "SELECT \"5th_evening\" FROM \"giovani_new_generation_section\" WHERE \"singer\"='Gabriella Ferrone';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"derbi_amman\" (\n \"num\" real,\n \"tournament\" text,\n \"al_faisaly_wins\" real,\n \"al_wehdat_wins\" real,\n \"draws\" real,\n \"total\" real,\n \"al_faisaly_goals\" real,\n \"al_wehdat_goals\" real\n);\n\nQuestion: What is the maximum overall number?" }, { "role": "assistant", "content": "SELECT MAX(\"num\") FROM \"derbi_amman\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"derbi_amman\" (\n \"num\" real,\n \"tournament\" text,\n \"al_faisaly_wins\" real,\n \"al_wehdat_wins\" real,\n \"draws\" real,\n \"total\" real,\n \"al_faisaly_goals\" real,\n \"al_wehdat_goals\" real\n);\n\nQuestion: When the number is 2 what is the lowest amount of al-wedhat wins?" }, { "role": "assistant", "content": "SELECT MIN(\"al_wehdat_wins\") FROM \"derbi_amman\" WHERE \"num\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"derbi_amman\" (\n \"num\" real,\n \"tournament\" text,\n \"al_faisaly_wins\" real,\n \"al_wehdat_wins\" real,\n \"draws\" real,\n \"total\" real,\n \"al_faisaly_goals\" real,\n \"al_wehdat_goals\" real\n);\n\nQuestion: When jordan fa cup is the tournament how many draws?" }, { "role": "assistant", "content": "SELECT COUNT(\"draws\") FROM \"derbi_amman\" WHERE \"tournament\"='Jordan FA Cup';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_298550_1\" (\n \"country_with_flag\" text,\n \"area_km\" real,\n \"population_1_july_2005_est\" real,\n \"population_density_per_km\" text,\n \"capital\" text\n);\n\nQuestion: What is the highest value of area when capital is San Juan?" }, { "role": "assistant", "content": "SELECT MAX(\"area_km\") FROM \"table1_298550_1\" WHERE \"capital\"='San Juan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_298550_1\" (\n \"country_with_flag\" text,\n \"area_km\" real,\n \"population_1_july_2005_est\" real,\n \"population_density_per_km\" text,\n \"capital\" text\n);\n\nQuestion: How many entries for area correspond to a population density of 207.9?" }, { "role": "assistant", "content": "SELECT COUNT(\"area_km\") FROM \"table1_298550_1\" WHERE \"population_density_per_km\"='207.9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_298550_1\" (\n \"country_with_flag\" text,\n \"area_km\" real,\n \"population_1_july_2005_est\" real,\n \"population_density_per_km\" text,\n \"capital\" text\n);\n\nQuestion: What is every entry for area if capital is Port-au-Prince?" }, { "role": "assistant", "content": "SELECT \"area_km\" FROM \"table1_298550_1\" WHERE \"capital\"='Port-au-Prince';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_298550_1\" (\n \"country_with_flag\" text,\n \"area_km\" real,\n \"population_1_july_2005_est\" real,\n \"population_density_per_km\" text,\n \"capital\" text\n);\n\nQuestion: What is every country with a flag with population of 11346670?" }, { "role": "assistant", "content": "SELECT \"country_with_flag\" FROM \"table1_298550_1\" WHERE \"population_1_july_2005_est\"=11346670;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_298550_1\" (\n \"country_with_flag\" text,\n \"area_km\" real,\n \"population_1_july_2005_est\" real,\n \"population_density_per_km\" text,\n \"capital\" text\n);\n\nQuestion: What is the highest value for population when area is 9104?" }, { "role": "assistant", "content": "SELECT MAX(\"population_1_july_2005_est\") FROM \"table1_298550_1\" WHERE \"area_km\"=9104;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2003_04_season_as_a_three_year_old\" (\n \"result\" text,\n \"date\" text,\n \"race\" text,\n \"venue\" text,\n \"group\" text,\n \"distance\" text,\n \"weight_kg\" text,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: What many times was the victoria derby raced?" }, { "role": "assistant", "content": "SELECT COUNT(\"date\") FROM \"2003_04_season_as_a_three_year_old\" WHERE \"race\"='Victoria Derby';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2003_04_season_as_a_three_year_old\" (\n \"result\" text,\n \"date\" text,\n \"race\" text,\n \"venue\" text,\n \"group\" text,\n \"distance\" text,\n \"weight_kg\" text,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: What is the autumn classic weight?" }, { "role": "assistant", "content": "SELECT \"weight_kg\" FROM \"2003_04_season_as_a_three_year_old\" WHERE \"race\"='Autumn Classic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_29897962_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who directed the episode that had 3.55 million viewers?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_29897962_1\" WHERE \"u_s_viewers_million\"='3.55';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_298883_5\" (\n \"value\" text,\n \"dimensions\" text,\n \"main_color\" text,\n \"obverse\" text,\n \"reverse\" text,\n \"watermark\" text,\n \"date_of_issue\" text\n);\n\nQuestion: What are the dimensions of the coin worth \u20a9200?" }, { "role": "assistant", "content": "SELECT \"dimensions\" FROM \"table1_298883_5\" WHERE \"value\"='\u20a9200';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_298883_5\" (\n \"value\" text,\n \"dimensions\" text,\n \"main_color\" text,\n \"obverse\" text,\n \"reverse\" text,\n \"watermark\" text,\n \"date_of_issue\" text\n);\n\nQuestion: How many different dates of issue are the for the coin with kumsusan memorial palace on the obverse?" }, { "role": "assistant", "content": "SELECT COUNT(\"date_of_issue\") FROM \"table1_298883_5\" WHERE \"obverse\"='Kumsusan Memorial Palace';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_298883_5\" (\n \"value\" text,\n \"dimensions\" text,\n \"main_color\" text,\n \"obverse\" text,\n \"reverse\" text,\n \"watermark\" text,\n \"date_of_issue\" text\n);\n\nQuestion: What are the dimensions of the coin issued in 1992 with kim il-sung on the obverse?" }, { "role": "assistant", "content": "SELECT \"dimensions\" FROM \"table1_298883_5\" WHERE \"obverse\"='Kim Il-sung' AND \"date_of_issue\"='1992';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_298883_5\" (\n \"value\" text,\n \"dimensions\" text,\n \"main_color\" text,\n \"obverse\" text,\n \"reverse\" text,\n \"watermark\" text,\n \"date_of_issue\" text\n);\n\nQuestion: What is on the reverse side of the \u20a9500 coin?" }, { "role": "assistant", "content": "SELECT \"reverse\" FROM \"table1_298883_5\" WHERE \"value\"='\u20a9500';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_298883_5\" (\n \"value\" text,\n \"dimensions\" text,\n \"main_color\" text,\n \"obverse\" text,\n \"reverse\" text,\n \"watermark\" text,\n \"date_of_issue\" text\n);\n\nQuestion: What is on the reverse side of the \u20a9100 coin?" }, { "role": "assistant", "content": "SELECT \"reverse\" FROM \"table1_298883_5\" WHERE \"value\"='\u20a9100';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_298883_5\" (\n \"value\" text,\n \"dimensions\" text,\n \"main_color\" text,\n \"obverse\" text,\n \"reverse\" text,\n \"watermark\" text,\n \"date_of_issue\" text\n);\n\nQuestion: What are the dimensions of the coin with western sea barrage and locks at taedong gang on the reverse side?" }, { "role": "assistant", "content": "SELECT \"dimensions\" FROM \"table1_298883_5\" WHERE \"reverse\"='Western sea barrage and locks at Taedong Gang';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_29860752_11\" (\n \"name_namesake\" text,\n \"builder_dimensions_displacement_hull_speed_complement\" text,\n \"machinery_boiler_bunkers_engines_armament\" text,\n \"ordered_laid_down_launched_trials\" text,\n \"commissioned_decommissioned_afterward\" text\n);\n\nQuestion: What are all the name(namesakes) for the entire chart?" }, { "role": "assistant", "content": "SELECT \"name_namesake\" FROM \"table1_29860752_11\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_29860752_11\" (\n \"name_namesake\" text,\n \"builder_dimensions_displacement_hull_speed_complement\" text,\n \"machinery_boiler_bunkers_engines_armament\" text,\n \"ordered_laid_down_launched_trials\" text,\n \"commissioned_decommissioned_afterward\" text\n);\n\nQuestion: What are the names(namesakes) through out the entire chart?" }, { "role": "assistant", "content": "SELECT \"name_namesake\" FROM \"table1_29860752_11\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ratings\" (\n \"season\" text,\n \"season_premiere\" text,\n \"season_finale\" text,\n \"tv_season\" text,\n \"ranking\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: What season was the finale that aired on May 23, 2004?" }, { "role": "assistant", "content": "SELECT \"tv_season\" FROM \"ratings\" WHERE \"season_finale\"='May 23, 2004';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ratings\" (\n \"season\" text,\n \"season_premiere\" text,\n \"season_finale\" text,\n \"tv_season\" text,\n \"ranking\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: What TV season was the 1st season?" }, { "role": "assistant", "content": "SELECT \"tv_season\" FROM \"ratings\" WHERE \"season\"='1st';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ratings\" (\n \"season\" text,\n \"season_premiere\" text,\n \"season_finale\" text,\n \"tv_season\" text,\n \"ranking\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: When was the 3rd season premiere originally aired?" }, { "role": "assistant", "content": "SELECT \"season_premiere\" FROM \"ratings\" WHERE \"season\"='3rd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ratings\" (\n \"season\" text,\n \"season_premiere\" text,\n \"season_finale\" text,\n \"tv_season\" text,\n \"ranking\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: What was the 2nd's season's ranking?" }, { "role": "assistant", "content": "SELECT \"ranking\" FROM \"ratings\" WHERE \"season\"='2nd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ratings\" (\n \"season\" text,\n \"season_premiere\" text,\n \"season_finale\" text,\n \"tv_season\" text,\n \"ranking\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: When did the season premiere that saw 8.4 million viewers first air?" }, { "role": "assistant", "content": "SELECT \"season_premiere\" FROM \"ratings\" WHERE \"viewers_in_millions\"='8.4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ratings\" (\n \"season\" text,\n \"season_premiere\" text,\n \"season_finale\" text,\n \"tv_season\" text,\n \"ranking\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: When did the season finale for the January 9, 2000 season premiere first air?" }, { "role": "assistant", "content": "SELECT \"season_finale\" FROM \"ratings\" WHERE \"season_premiere\"='January 9, 2000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_29920800_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who directed the episode that was watched by 2.97 million U.S. viewers? " }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_29920800_1\" WHERE \"u_s_viewers_million\"='2.97';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_29920800_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the original air date of the episode written by Liz Feldman?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_29920800_1\" WHERE \"written_by\"='Liz Feldman';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_29920800_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who wrote the episode that was watched by 2.97 million U.S. viewers? " }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_29920800_1\" WHERE \"u_s_viewers_million\"='2.97';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_29920800_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many millions of U.S viewers watched the episode written by Liz Feldman? " }, { "role": "assistant", "content": "SELECT \"u_s_viewers_million\" FROM \"table1_29920800_1\" WHERE \"written_by\"='Liz Feldman';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"biggest_attendances\" (\n \"competition\" text,\n \"attendance\" real,\n \"opponent\" text,\n \"season\" text,\n \"result\" text\n);\n\nQuestion: How many people attended the uefa champions league competition?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"biggest_attendances\" WHERE \"competition\"='UEFA Champions League';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"rank\" real,\n \"country_territory\" text,\n \"miss_international\" real,\n \"1st_runner_up\" real,\n \"2nd_runner_up\" real,\n \"3rd_runner_up\" real,\n \"4th_runner_up\" real,\n \"semifinalists\" real,\n \"total\" real\n);\n\nQuestion: How many women has reached the title of Miss International representing the country ranked as number 1?" }, { "role": "assistant", "content": "SELECT MIN(\"miss_international\") FROM \"references\" WHERE \"rank\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"rank\" real,\n \"country_territory\" text,\n \"miss_international\" real,\n \"1st_runner_up\" real,\n \"2nd_runner_up\" real,\n \"3rd_runner_up\" real,\n \"4th_runner_up\" real,\n \"semifinalists\" real,\n \"total\" real\n);\n\nQuestion: How many women has got the first runner-up position in representation of Philippines?" }, { "role": "assistant", "content": "SELECT \"1st_runner_up\" FROM \"references\" WHERE \"country_territory\"='Philippines';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"rank\" real,\n \"country_territory\" text,\n \"miss_international\" real,\n \"1st_runner_up\" real,\n \"2nd_runner_up\" real,\n \"3rd_runner_up\" real,\n \"4th_runner_up\" real,\n \"semifinalists\" real,\n \"total\" real\n);\n\nQuestion: What is the lowest value in the miss international column?" }, { "role": "assistant", "content": "SELECT MIN(\"miss_international\") FROM \"references\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"rank\" real,\n \"country_territory\" text,\n \"miss_international\" real,\n \"1st_runner_up\" real,\n \"2nd_runner_up\" real,\n \"3rd_runner_up\" real,\n \"4th_runner_up\" real,\n \"semifinalists\" real,\n \"total\" real\n);\n\nQuestion: What is the smallest quantity displayed under the title \"first runner-up\"?" }, { "role": "assistant", "content": "SELECT MIN(\"1st_runner_up\") FROM \"references\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"rank\" real,\n \"country_territory\" text,\n \"miss_international\" real,\n \"1st_runner_up\" real,\n \"2nd_runner_up\" real,\n \"3rd_runner_up\" real,\n \"4th_runner_up\" real,\n \"semifinalists\" real,\n \"total\" real\n);\n\nQuestion: How many women from Uruguay has become third runner-up in this pageant?" }, { "role": "assistant", "content": "SELECT MAX(\"3rd_runner_up\") FROM \"references\" WHERE \"country_territory\"='Uruguay';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"num\" real,\n \"position\" text,\n \"height\" text,\n \"weight_lb\" real,\n \"year\" text,\n \"hometown\" text,\n \"previous_school\" text\n);\n\nQuestion: What year was player number 10?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"roster\" WHERE \"num\"=10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"num\" real,\n \"position\" text,\n \"height\" text,\n \"weight_lb\" real,\n \"year\" text,\n \"hometown\" text,\n \"previous_school\" text\n);\n\nQuestion: How many hometowns are there when Charis Prep was the previous school?" }, { "role": "assistant", "content": "SELECT COUNT(\"hometown\") FROM \"roster\" WHERE \"previous_school\"='Charis Prep';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"num\" real,\n \"position\" text,\n \"height\" text,\n \"weight_lb\" real,\n \"year\" text,\n \"hometown\" text,\n \"previous_school\" text\n);\n\nQuestion: How many different items appear in the weight column when Pittsburgh, PA is the hometown?" }, { "role": "assistant", "content": "SELECT COUNT(\"weight_lb\") FROM \"roster\" WHERE \"hometown\"='Pittsburgh, PA';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_29960651_5\" (\n \"no_for_season\" real,\n \"no_for_series\" real,\n \"episode\" text,\n \"airdate\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: Which episode is number 3 in the season?" }, { "role": "assistant", "content": "SELECT \"episode\" FROM \"table1_29960651_5\" WHERE \"no_for_season\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_29960651_5\" (\n \"no_for_season\" real,\n \"no_for_series\" real,\n \"episode\" text,\n \"airdate\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: What is the episode name for series number 45?" }, { "role": "assistant", "content": "SELECT \"episode\" FROM \"table1_29960651_5\" WHERE \"no_for_series\"=45;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"rank\" real,\n \"country_territory\" text,\n \"miss_earth\" text,\n \"miss_air\" real,\n \"miss_water\" real,\n \"miss_fire\" real,\n \"semifinalists\" real,\n \"total\" real\n);\n\nQuestion: What is the highest total for any country/territory? " }, { "role": "assistant", "content": "SELECT MAX(\"total\") FROM \"references\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"rank\" real,\n \"country_territory\" text,\n \"miss_earth\" text,\n \"miss_air\" real,\n \"miss_water\" real,\n \"miss_fire\" real,\n \"semifinalists\" real,\n \"total\" real\n);\n\nQuestion: How many semifinalists has Romania had? " }, { "role": "assistant", "content": "SELECT \"semifinalists\" FROM \"references\" WHERE \"country_territory\"='Romania';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"rank\" real,\n \"country_territory\" text,\n \"miss_earth\" text,\n \"miss_air\" real,\n \"miss_water\" real,\n \"miss_fire\" real,\n \"semifinalists\" real,\n \"total\" real\n);\n\nQuestion: How many Miss Waters has Canada had?" }, { "role": "assistant", "content": "SELECT MAX(\"miss_water\") FROM \"references\" WHERE \"country_territory\"='Canada';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"rank\" real,\n \"country_territory\" text,\n \"miss_earth\" text,\n \"miss_air\" real,\n \"miss_water\" real,\n \"miss_fire\" real,\n \"semifinalists\" real,\n \"total\" real\n);\n\nQuestion: What is the most Miss Fires any country has had?" }, { "role": "assistant", "content": "SELECT MAX(\"miss_fire\") FROM \"references\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"rank\" real,\n \"country_territory\" text,\n \"miss_earth\" text,\n \"miss_air\" real,\n \"miss_water\" real,\n \"miss_fire\" real,\n \"semifinalists\" real,\n \"total\" real\n);\n\nQuestion: What is the least amount of Miss Airs any country has had?" }, { "role": "assistant", "content": "SELECT MIN(\"miss_air\") FROM \"references\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: what re the high assists for january 29?" }, { "role": "assistant", "content": "SELECT \"high_assists\" FROM \"schedule\" WHERE \"date\"='January 29';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: What team did the suns play on April 21? " }, { "role": "assistant", "content": "SELECT \"team\" FROM \"game_log\" WHERE \"date\"='April 21';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: In what game was the attendance at the America West Arena 18,756?" }, { "role": "assistant", "content": "SELECT MAX(\"game\") FROM \"game_log\" WHERE \"location_attendance\"='America West Arena 18,756';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"official_name\" text,\n \"ine_code\" real,\n \"name_in_spanish\" text,\n \"name_in_basque\" text,\n \"population_2007\" real\n);\n\nQuestion: What is the official name of the municipality whose name in Basque is Bilar?" }, { "role": "assistant", "content": "SELECT \"official_name\" FROM \"see_also\" WHERE \"name_in_basque\"='Bilar';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"official_name\" text,\n \"ine_code\" real,\n \"name_in_spanish\" text,\n \"name_in_basque\" text,\n \"population_2007\" real\n);\n\nQuestion: What is the official name of the municipality whose name in Spanish is Crip\u00e1n?" }, { "role": "assistant", "content": "SELECT \"official_name\" FROM \"see_also\" WHERE \"name_in_spanish\"='Crip\u00e1n';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"official_name\" text,\n \"ine_code\" real,\n \"name_in_spanish\" text,\n \"name_in_basque\" text,\n \"population_2007\" real\n);\n\nQuestion: What is the official name of the municipality whose name in Spanish is Vitoria? " }, { "role": "assistant", "content": "SELECT \"official_name\" FROM \"see_also\" WHERE \"name_in_spanish\"='Vitoria';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"official_name\" text,\n \"ine_code\" real,\n \"name_in_spanish\" text,\n \"name_in_basque\" text,\n \"population_2007\" real\n);\n\nQuestion: What is the name in Basque of the municipality whose official name is Kuartango? " }, { "role": "assistant", "content": "SELECT \"name_in_basque\" FROM \"see_also\" WHERE \"official_name\"='Kuartango';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"official_name\" text,\n \"ine_code\" real,\n \"name_in_spanish\" text,\n \"name_in_basque\" text,\n \"population_2007\" real\n);\n\nQuestion: What is the INE code of the municipality whose official name is Berantevilla? " }, { "role": "assistant", "content": "SELECT MAX(\"ine_code\") FROM \"see_also\" WHERE \"official_name\"='Berantevilla';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30011_2\" (\n \"prefix_class\" text,\n \"type_and_usage\" text,\n \"example\" text,\n \"equivalent\" text,\n \"reference\" text\n);\n\nQuestion: What is every reference for type and usage of Germanium small-signal RF transistor?" }, { "role": "assistant", "content": "SELECT \"reference\" FROM \"table1_30011_2\" WHERE \"type_and_usage\"='Germanium small-signal RF transistor';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30011_2\" (\n \"prefix_class\" text,\n \"type_and_usage\" text,\n \"example\" text,\n \"equivalent\" text,\n \"reference\" text\n);\n\nQuestion: What is every equivalent for the example of asy28?" }, { "role": "assistant", "content": "SELECT \"equivalent\" FROM \"table1_30011_2\" WHERE \"example\"='ASY28';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30011_2\" (\n \"prefix_class\" text,\n \"type_and_usage\" text,\n \"example\" text,\n \"equivalent\" text,\n \"reference\" text\n);\n\nQuestion: What is every reference for the example of AF117?" }, { "role": "assistant", "content": "SELECT \"reference\" FROM \"table1_30011_2\" WHERE \"example\"='AF117';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30011_2\" (\n \"prefix_class\" text,\n \"type_and_usage\" text,\n \"example\" text,\n \"equivalent\" text,\n \"reference\" text\n);\n\nQuestion: What is every prefix class for the equivalent of NTE160?" }, { "role": "assistant", "content": "SELECT \"prefix_class\" FROM \"table1_30011_2\" WHERE \"equivalent\"='NTE160';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30011_2\" (\n \"prefix_class\" text,\n \"type_and_usage\" text,\n \"example\" text,\n \"equivalent\" text,\n \"reference\" text\n);\n\nQuestion: What is every prefix class for the equivalent of NTE101?" }, { "role": "assistant", "content": "SELECT \"prefix_class\" FROM \"table1_30011_2\" WHERE \"equivalent\"='NTE101';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30011_2\" (\n \"prefix_class\" text,\n \"type_and_usage\" text,\n \"example\" text,\n \"equivalent\" text,\n \"reference\" text\n);\n\nQuestion: What is every example for the equivalent of NTE160?" }, { "role": "assistant", "content": "SELECT \"example\" FROM \"table1_30011_2\" WHERE \"equivalent\"='NTE160';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"rank\" real,\n \"country_territory\" text,\n \"manhunt_international\" real,\n \"1st_runner_up\" real,\n \"2nd_runner_up\" real,\n \"3rd_runner_up\" real,\n \"4th_runner_up\" real,\n \"semifinalists\" real,\n \"total\" real\n);\n\nQuestion: How many manhunt beauty contets have been held in france?" }, { "role": "assistant", "content": "SELECT \"manhunt_international\" FROM \"references\" WHERE \"country_territory\"='France';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"rank\" real,\n \"country_territory\" text,\n \"manhunt_international\" real,\n \"1st_runner_up\" real,\n \"2nd_runner_up\" real,\n \"3rd_runner_up\" real,\n \"4th_runner_up\" real,\n \"semifinalists\" real,\n \"total\" real\n);\n\nQuestion: How many semifinalists where from peru?" }, { "role": "assistant", "content": "SELECT \"semifinalists\" FROM \"references\" WHERE \"country_territory\"='Peru';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"rank\" real,\n \"country_territory\" text,\n \"manhunt_international\" real,\n \"1st_runner_up\" real,\n \"2nd_runner_up\" real,\n \"3rd_runner_up\" real,\n \"4th_runner_up\" real,\n \"semifinalists\" real,\n \"total\" real\n);\n\nQuestion: How many first place participants where from croatia?" }, { "role": "assistant", "content": "SELECT \"3rd_runner_up\" FROM \"references\" WHERE \"country_territory\"='Croatia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"rank\" real,\n \"country_territory\" text,\n \"manhunt_international\" real,\n \"1st_runner_up\" real,\n \"2nd_runner_up\" real,\n \"3rd_runner_up\" real,\n \"4th_runner_up\" real,\n \"semifinalists\" real,\n \"total\" real\n);\n\nQuestion: What is the minimum sum?" }, { "role": "assistant", "content": "SELECT MIN(\"total\") FROM \"references\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"rank\" real,\n \"country_territory\" text,\n \"manhunt_international\" real,\n \"1st_runner_up\" real,\n \"2nd_runner_up\" real,\n \"3rd_runner_up\" real,\n \"4th_runner_up\" real,\n \"semifinalists\" real,\n \"total\" real\n);\n\nQuestion: What is the minimum manhunt beauty contest?" }, { "role": "assistant", "content": "SELECT MIN(\"manhunt_international\") FROM \"references\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30030227_1\" (\n \"series_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"viewers_million\" text\n);\n\nQuestion: Who wrote \"yielding\"?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_30030227_1\" WHERE \"title\"='\\\"Yielding\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30030227_1\" (\n \"series_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"viewers_million\" text\n);\n\nQuestion: How many people wrote the episode directed by Arvin Brown?" }, { "role": "assistant", "content": "SELECT COUNT(\"written_by\") FROM \"table1_30030227_1\" WHERE \"directed_by\"='Arvin Brown';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30030227_1\" (\n \"series_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"viewers_million\" text\n);\n\nQuestion: How many million viewers watched \"night moves\"?" }, { "role": "assistant", "content": "SELECT \"viewers_million\" FROM \"table1_30030227_1\" WHERE \"title\"='\\\"Night Moves\\\"';" } ]