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