text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14724369_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: What is the first number in series that had the production code 1ACX03? <|assistant|> SELECT MAX("no_in_series") FROM "table1_14724369_1" WHERE "production_code"='1ACX03';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14724369_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: Which title had the production code 1ACX04? <|assistant|> SELECT "title" FROM "table1_14724369_1" WHERE "production_code"='1ACX04';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14724369_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: When did the show directed by Michael Dimartino first air? <|assistant|> SELECT "original_air_date" FROM "table1_14724369_1" WHERE "directed_by"='Michael DiMartino';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14724369_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: Which series numbers were directed by Monte Young? <|assistant|> SELECT "no_in_series" FROM "table1_14724369_1" WHERE "directed_by"='Monte Young';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14724369_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: How many people directed the show written by Chris Sheridan? <|assistant|> SELECT COUNT("directed_by") FROM "table1_14724369_1" WHERE "written_by"='Chris Sheridan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: What regular seasons occurred in 2011? <|assistant|> SELECT "regular_season" FROM "year_by_year" WHERE "year"=2011;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: What is the largest numbered? <|assistant|> SELECT MAX("division") FROM "year_by_year";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: How many positions does rene villemure play? <|assistant|> SELECT COUNT("position") FROM "round_two" WHERE "player"='Rene Villemure';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What is the pick# for the medicine hat tigers (wchl)? <|assistant|> SELECT MIN("pick_num") FROM "round_two" WHERE "college_junior_club_team"='Medicine Hat Tigers (WCHL)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What nhl team does stan weir play for? <|assistant|> SELECT "nhl_team" FROM "round_two" WHERE "player"='Stan Weir';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What nhl team does dwight bialowas play for? <|assistant|> SELECT "nhl_team" FROM "round_two" WHERE "player"='Dwight Bialowas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Lorne Henning has the lowest pick# of? <|assistant|> SELECT MIN("pick_num") FROM "round_two";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Jack Lynch played for the oshawa generals (omjhl) before playing for what nhl team? <|assistant|> SELECT "nhl_team" FROM "round_two" WHERE "college_junior_club_team"='Oshawa Generals (OMJHL)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_three" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Which colle/junior/club team did Michel Boudreau play for? <|assistant|> SELECT "college_junior_club_team" FROM "round_three" WHERE "player"='Michel Boudreau';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_three" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Which players played right wing? <|assistant|> SELECT "player" FROM "round_three" WHERE "position"='Right Wing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_three" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Which nationality is the player from the Philadelphia Flyers? <|assistant|> SELECT "nationality" FROM "round_three" WHERE "nhl_team"='Philadelphia Flyers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_three" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Which position did the player hold that played for the Philadelphia Flyers in NHL? <|assistant|> SELECT "position" FROM "round_three" WHERE "nhl_team"='Philadelphia Flyers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_three" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Which college/junior/club team did the player play on that played for the Buffalo Sabres in NHL? <|assistant|> SELECT "college_junior_club_team" FROM "round_three" WHERE "nhl_team"='Buffalo Sabres';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Name the number of teams for college/junior club for philadelphia flyers <|assistant|> SELECT COUNT("college_junior_club_team") FROM "round_four" WHERE "nhl_team"='Philadelphia Flyers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Name the position for ron lalonde <|assistant|> SELECT "position" FROM "round_four" WHERE "player"='Ron Lalonde';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Name the college/junior club team for pick number 63 <|assistant|> SELECT "college_junior_club_team" FROM "round_four" WHERE "pick_num"=63;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_ten" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: How many positions did 1972 NHL Draft pick Rene Lambert play? <|assistant|> SELECT COUNT("position") FROM "round_ten" WHERE "player"='Rene Lambert';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_nine" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: what's the college/junior/club team with nhl team being california golden seals <|assistant|> SELECT "college_junior_club_team" FROM "round_nine" WHERE "nhl_team"='California Golden Seals';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_nine" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: what's the nhl team with college/junior/club team being brandon wheat kings (wchl) <|assistant|> SELECT "nhl_team" FROM "round_nine" WHERE "college_junior_club_team"='Brandon Wheat Kings (WCHL)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_nine" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: who is the the player with pick # being 132 <|assistant|> SELECT "player" FROM "round_nine" WHERE "pick_num"=132;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_nine" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: how many player with nhl team being vancouver canucks <|assistant|> SELECT COUNT("player") FROM "round_nine" WHERE "nhl_team"='Vancouver Canucks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_nine" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: what's the position with player being ray boutin <|assistant|> SELECT "position" FROM "round_nine" WHERE "player"='Ray Boutin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "railway_stations_currently_in_use" ( "station_and_code" text, "managed_by" text, "lines_served" text, "station_users_2007_8" real, "station_users_2008_9" text, "year_opened" text, "platforms" text, "borough" text ); Question: what is the name of the borough where station uses is 28702? <|assistant|> SELECT "borough" FROM "railway_stations_currently_in_use" WHERE "station_users_2008_9"='28702';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "railway_stations_currently_in_use" ( "station_and_code" text, "managed_by" text, "lines_served" text, "station_users_2007_8" real, "station_users_2008_9" text, "year_opened" text, "platforms" text, "borough" text ); Question: what are the lines served where station users is 210076? <|assistant|> SELECT "lines_served" FROM "railway_stations_currently_in_use" WHERE "station_users_2008_9"='210076';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "railway_stations_currently_in_use" ( "station_and_code" text, "managed_by" text, "lines_served" text, "station_users_2007_8" real, "station_users_2008_9" text, "year_opened" text, "platforms" text, "borough" text ); Question: whatis hte station code where users are 130368? <|assistant|> SELECT "station_and_code" FROM "railway_stations_currently_in_use" WHERE "station_users_2008_9"='130368';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_prior_winners" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Which is the class A when Weslaco was the class AAAAA and brownwood was the class AAAA <|assistant|> SELECT "class_a" FROM "list_of_prior_winners" WHERE "class_aaaaa"='Weslaco' AND "class_aaaa"='Brownwood';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_prior_winners" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Which is the class A when Marion was the class AA <|assistant|> SELECT "class_a" FROM "list_of_prior_winners" WHERE "class_aa"='Marion';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_prior_winners" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Which is the class AA when graford was the class A <|assistant|> SELECT "class_aa" FROM "list_of_prior_winners" WHERE "class_a"='Graford';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_prior_winners" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: How many class AA in the year 2002-03 <|assistant|> SELECT COUNT("class_aa") FROM "list_of_prior_winners" WHERE "school_year"='2002-03';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_prior_winners" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Who was the class AAAA when class AAAAA was Weslaco in 1994-95 <|assistant|> SELECT "class_aaaa" FROM "list_of_prior_winners" WHERE "class_aaaaa"='Weslaco' AND "school_year"='1994-95';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_prior_winners" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: What was the class AAAA when San Angelo Lake View was the class AAAA <|assistant|> SELECT "class_aaaaa" FROM "list_of_prior_winners" WHERE "class_aaaa"='San Angelo Lake View';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "africa" ( "rank" real, "country" text, "international_tourist_arrivals_2011" text, "international_tourist_arrivals_2010" text, "change_2010_to_2011" text, "change_2009_to_2010" text ); Question: What are the changes from 2009 to 2010 in Tunisia? <|assistant|> SELECT "change_2009_to_2010" FROM "africa" WHERE "country"='Tunisia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "africa" ( "rank" real, "country" text, "international_tourist_arrivals_2011" text, "international_tourist_arrivals_2010" text, "change_2010_to_2011" text, "change_2009_to_2010" text ); Question: What are the international tourist arrivals in 2010 where change from 2010 to 2011 is +11.2% ? <|assistant|> SELECT "international_tourist_arrivals_2010" FROM "africa" WHERE "change_2010_to_2011"='+11.2%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "africa" ( "rank" real, "country" text, "international_tourist_arrivals_2011" text, "international_tourist_arrivals_2010" text, "change_2010_to_2011" text, "change_2009_to_2010" text ); Question: What are the changes (2010 to 2011) where the International Tourist Arrivals is 1.7 million? <|assistant|> SELECT "change_2010_to_2011" FROM "africa" WHERE "international_tourist_arrivals_2011"='1.7 million';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "africa" ( "rank" real, "country" text, "international_tourist_arrivals_2011" text, "international_tourist_arrivals_2010" text, "change_2010_to_2011" text, "change_2009_to_2010" text ); Question: What are the international tourist arrivals(2010) where change from 2009 to 2010 is +11.1%? <|assistant|> SELECT "international_tourist_arrivals_2010" FROM "africa" WHERE "change_2009_to_2010"='+11.1%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "africa" ( "rank" real, "country" text, "international_tourist_arrivals_2011" text, "international_tourist_arrivals_2010" text, "change_2010_to_2011" text, "change_2009_to_2010" text ); Question: What are the International tourist arrivals (2010) where change from 2010 to 2011 is +15% <|assistant|> SELECT "international_tourist_arrivals_2010" FROM "africa" WHERE "change_2010_to_2011"='+15%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "africa" ( "rank" real, "country" text, "international_tourist_arrivals_2011" text, "international_tourist_arrivals_2010" text, "change_2010_to_2011" text, "change_2009_to_2010" text ); Question: How many international tourist arrivals were in Senegal in 2011? <|assistant|> SELECT "international_tourist_arrivals_2011" FROM "africa" WHERE "country"='Senegal';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "europe" ( "rank" real, "country" text, "international_tourist_arrivals_2012" text, "international_tourist_arrivals_2011" text, "change_2011_to_2012" text, "change_2010_to_2011" text ); Question: When the change (2010 to 2011) is +1.0% what is the change (2011 to 2012)? <|assistant|> SELECT "change_2011_to_2012" FROM "europe" WHERE "change_2010_to_2011"='+1.0%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "europe" ( "rank" real, "country" text, "international_tourist_arrivals_2012" text, "international_tourist_arrivals_2011" text, "change_2011_to_2012" text, "change_2010_to_2011" text ); Question: When the change (2011 to 2012) is -0.1% what is the country? <|assistant|> SELECT "country" FROM "europe" WHERE "change_2011_to_2012"='-0.1%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "europe" ( "rank" real, "country" text, "international_tourist_arrivals_2012" text, "international_tourist_arrivals_2011" text, "change_2011_to_2012" text, "change_2010_to_2011" text ); Question: When the change (2011 to 2012) is +13.4% what is the country? <|assistant|> SELECT "country" FROM "europe" WHERE "change_2011_to_2012"='+13.4%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "europe" ( "rank" real, "country" text, "international_tourist_arrivals_2012" text, "international_tourist_arrivals_2011" text, "change_2011_to_2012" text, "change_2010_to_2011" text ); Question: When 24.1 million is international tourist arrivals (2012) what is the change (2010 to 2011) ? <|assistant|> SELECT "change_2010_to_2011" FROM "europe" WHERE "international_tourist_arrivals_2012"='24.1 million';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "europe" ( "rank" real, "country" text, "international_tourist_arrivals_2012" text, "international_tourist_arrivals_2011" text, "change_2011_to_2012" text, "change_2010_to_2011" text ); Question: United kingdom is the country what is the change (2011 to 2012)? <|assistant|> SELECT "change_2011_to_2012" FROM "europe" WHERE "country"='United Kingdom';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "europe" ( "rank" real, "country" text, "international_tourist_arrivals_2012" text, "international_tourist_arrivals_2011" text, "change_2011_to_2012" text, "change_2010_to_2011" text ); Question: When the 1 is the rank what is the overall amount of international tourist arrivals in 2012? <|assistant|> SELECT COUNT("international_tourist_arrivals_2012") FROM "europe" WHERE "rank"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "enrollment_racial_demographics_and_free_" ( "year" real, "enrollment" real, "black_pct" text, "white_pct" text, "hispanic_pct" text, "asian_pct" text, "free_reduced_lunch_pct" text ); Question: What is the enrollment amount where Hispanic (%) is 3.6? <|assistant|> SELECT "enrollment" FROM "enrollment_racial_demographics_and_free_" WHERE "hispanic_pct"='3.6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "enrollment_racial_demographics_and_free_" ( "year" real, "enrollment" real, "black_pct" text, "white_pct" text, "hispanic_pct" text, "asian_pct" text, "free_reduced_lunch_pct" text ); Question: What percentage of Asians are there in the year 2009? <|assistant|> SELECT "asian_pct" FROM "enrollment_racial_demographics_and_free_" WHERE "year"=2009;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "enrollment_racial_demographics_and_free_" ( "year" real, "enrollment" real, "black_pct" text, "white_pct" text, "hispanic_pct" text, "asian_pct" text, "free_reduced_lunch_pct" text ); Question: What percentage of Asians are there in the year 2004? <|assistant|> SELECT "asian_pct" FROM "enrollment_racial_demographics_and_free_" WHERE "year"=2004;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "enrollment_racial_demographics_and_free_" ( "year" real, "enrollment" real, "black_pct" text, "white_pct" text, "hispanic_pct" text, "asian_pct" text, "free_reduced_lunch_pct" text ); Question: What percentage of hispanics are there when the free/reduced lunch percentage is 81.4? <|assistant|> SELECT "hispanic_pct" FROM "enrollment_racial_demographics_and_free_" WHERE "free_reduced_lunch_pct"='81.4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "enrollment_racial_demographics_and_free_" ( "year" real, "enrollment" real, "black_pct" text, "white_pct" text, "hispanic_pct" text, "asian_pct" text, "free_reduced_lunch_pct" text ); Question: What percentage of free/reduced lunch are there when the hispanic percentage is 3.7? <|assistant|> SELECT "free_reduced_lunch_pct" FROM "enrollment_racial_demographics_and_free_" WHERE "hispanic_pct"='3.7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "num" real, "title" text, "length" text, "writer" text, "composer" text, "arranger" text, "dialect" text, "mix_engineer" text ); Question: Who was the arranger for the track written by Nizar Francis ? <|assistant|> SELECT "arranger" FROM "track_listing" WHERE "writer"='Nizar Francis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "num" real, "title" text, "length" text, "writer" text, "composer" text, "arranger" text, "dialect" text, "mix_engineer" text ); Question: Who was the writer for the song 4:29 in length? <|assistant|> SELECT "writer" FROM "track_listing" WHERE "length"='4:29';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "num" real, "title" text, "length" text, "writer" text, "composer" text, "arranger" text, "dialect" text, "mix_engineer" text ); Question: What track number is 4:29 in length? <|assistant|> SELECT "num" FROM "track_listing" WHERE "length"='4:29';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfhs_data" ( "states" text, "males_pct" text, "males_rank" real, "females_pct" text, "females_rank" real ); Question: What is the female rank in Karnataka? <|assistant|> SELECT "females_rank" FROM "nfhs_data" WHERE "states"='Karnataka';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_1" ( "number_of_episode" real, "number_of_season" real, "title_original" text, "title_english" text, "original_air_date" text ); Question: What is the English title when the original title is Die Qual Der Wahl? <|assistant|> SELECT "title_english" FROM "season_1" WHERE "title_original"='Die Qual der Wahl';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_1" ( "number_of_episode" real, "number_of_season" real, "title_original" text, "title_english" text, "original_air_date" text ); Question: What is the episode number where the English title is Pilot? <|assistant|> SELECT "number_of_episode" FROM "season_1" WHERE "title_english"='Pilot';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_1" ( "number_of_episode" real, "number_of_season" real, "title_original" text, "title_english" text, "original_air_date" text ); Question: What was the original air date for episode number 6? <|assistant|> SELECT "original_air_date" FROM "season_1" WHERE "number_of_episode"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_1" ( "number_of_episode" real, "number_of_season" real, "title_original" text, "title_english" text, "original_air_date" text ); Question: What is the original title of season number 3? <|assistant|> SELECT "title_original" FROM "season_1" WHERE "number_of_season"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "inegi_code" real, "municipality" text, "municipal_seat" text, "area_km_2" text, "population_2005" real, "population_density_km_2" text, "human_development_index_2000" text ); Question: What municipality where the human development index in the year 2000 was 0.7827? <|assistant|> SELECT "municipality" FROM "references" WHERE "human_development_index_2000"='0.7827';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "inegi_code" real, "municipality" text, "municipal_seat" text, "area_km_2" text, "population_2005" real, "population_density_km_2" text, "human_development_index_2000" text ); Question: What is the total number of population in the year 2005 where the population density 35.9 (/km 2)? <|assistant|> SELECT COUNT("population_2005") FROM "references" WHERE "population_density_km_2"='35.9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "inegi_code" real, "municipality" text, "municipal_seat" text, "area_km_2" text, "population_2005" real, "population_density_km_2" text, "human_development_index_2000" text ); Question: What is the human development index for the year 2000 where the ingei code is 10? <|assistant|> SELECT "human_development_index_2000" FROM "references" WHERE "inegi_code"=10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "inegi_code" real, "municipality" text, "municipal_seat" text, "area_km_2" text, "population_2005" real, "population_density_km_2" text, "human_development_index_2000" text ); Question: What is the area (km 2) where the population density (/mk2) is 84.3? <|assistant|> SELECT "area_km_2" FROM "references" WHERE "population_density_km_2"='84.3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "election_results" ( "year" real, "candidate" text, "hare_quota" real, "mandate" text, "list_votes" real, "list_pct" text ); Question: Name the mandate for list pct 12.39% <|assistant|> SELECT "mandate" FROM "election_results" WHERE "list_pct"='12.39%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "election_results" ( "year" real, "candidate" text, "hare_quota" real, "mandate" text, "list_votes" real, "list_pct" text ); Question: Name the total number of list votes for 20.95% <|assistant|> SELECT COUNT("list_votes") FROM "election_results" WHERE "list_pct"='20.95%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "3rd" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" real, "scoring_average" text, "scoring_rank" text ); Question: What was the scoring rank for Angela Stanford in 2009? <|assistant|> SELECT "scoring_rank" FROM "lpga_tour_career_summary" WHERE "year"=2009;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "3rd" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" real, "scoring_average" text, "scoring_rank" text ); Question: What was the highest number on money list rank for Angela Stanford's career? <|assistant|> SELECT MAX("money_list_rank") FROM "lpga_tour_career_summary";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "3rd" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" real, "scoring_average" text, "scoring_rank" text ); Question: In the year where Angela Stanford had a scoring average of 71.62, how many times did she take second place? <|assistant|> SELECT COUNT("2nd") FROM "lpga_tour_career_summary" WHERE "scoring_average"='71.62';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text ); Question: who is hte player with a 3 dart avg of 89.57? <|assistant|> SELECT "player" FROM "statistics" WHERE "3_dart_average"='89.57';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text ); Question: what are all played with a 3 dart avg is 92.06? <|assistant|> SELECT "played" FROM "statistics" WHERE "3_dart_average"='92.06';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14845640_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); Question: Namw the minimum production code for 16.04 million viewers <|assistant|> SELECT MIN("production_code") FROM "table1_14845640_1" WHERE "u_s_viewers_millions"='16.04';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14845640_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); Question: Name the written by for 16.32 million viewers <|assistant|> SELECT "written_by" FROM "table1_14845640_1" WHERE "u_s_viewers_millions"='16.32';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "3rd" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" text, "scoring_average" text, "scoring_rank" text ); Question: What is the highest number of cuts made when her best finish is t4? <|assistant|> SELECT MAX("cuts_made") FROM "lpga_tour_career_summary" WHERE "best_finish"='T4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "3rd" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" text, "scoring_average" text, "scoring_rank" text ); Question: How many total earnings are recorded when her best finish is t2 with a 71.25 scoring average? <|assistant|> SELECT COUNT("earnings") FROM "lpga_tour_career_summary" WHERE "best_finish"='T2' AND "scoring_average"='71.25';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "3rd" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" text, "scoring_average" text, "scoring_rank" text ); Question: What is the lowest number of cuts made when her best finish is t4? <|assistant|> SELECT MIN("cuts_made") FROM "lpga_tour_career_summary" WHERE "best_finish"='T4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "3rd" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" text, "scoring_average" text, "scoring_rank" text ); Question: How many years has she ranked 56 on the money list? <|assistant|> SELECT COUNT("year") FROM "lpga_tour_career_summary" WHERE "money_list_rank"='56';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "3rd" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" text, "scoring_average" text, "scoring_rank" text ); Question: What is the lowest number of wins? <|assistant|> SELECT MIN("wins") FROM "lpga_tour_career_summary";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14847258_1" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); Question: When steve gomer is the director who is the writer? <|assistant|> SELECT "written_by" FROM "table1_14847258_1" WHERE "directed_by"='Steve Gomer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14847258_1" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); Question: What is the air date for "there goes the bride"? <|assistant|> SELECT "original_air_date" FROM "table1_14847258_1" WHERE "title"='\"There Goes the Bride\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14847258_1" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); Question: 15.03 million u.s viewers seen what episode? <|assistant|> SELECT "title" FROM "table1_14847258_1" WHERE "u_s_viewers_millions"='15.03';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "deuces_wild" ( "hand" text, "1_credit" real, "2_credits" real, "3_credits" real, "4_credits" real, "5_credits" real ); Question: Name the most 3 credits <|assistant|> SELECT MIN("3_credits") FROM "deuces_wild";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "deuces_wild" ( "hand" text, "1_credit" real, "2_credits" real, "3_credits" real, "4_credits" real, "5_credits" real ); Question: Name the least 2 credits for straight hand <|assistant|> SELECT MIN("2_credits") FROM "deuces_wild" WHERE "hand"='Straight';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "deuces_wild" ( "hand" text, "1_credit" real, "2_credits" real, "3_credits" real, "4_credits" real, "5_credits" real ); Question: Name the least 2 credits for flush <|assistant|> SELECT MIN("2_credits") FROM "deuces_wild" WHERE "hand"='Flush';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "deuces_wild" ( "hand" text, "1_credit" real, "2_credits" real, "3_credits" real, "4_credits" real, "5_credits" real ); Question: Name the hand for 1 credit 200 <|assistant|> SELECT "hand" FROM "deuces_wild" WHERE "1_credit"=200;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "deuces_wild" ( "hand" text, "1_credit" real, "2_credits" real, "3_credits" real, "4_credits" real, "5_credits" real ); Question: Name the most 1 credit for three of a kind <|assistant|> SELECT MAX("1_credit") FROM "deuces_wild" WHERE "hand"='Three of a Kind';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage_winner" text, "general_classification" text, "mountains_classification" text, "points_classification" text, "young_rider_classification" text, "team_classification" text ); Question: Name the points classification for mark renshaw and team csc <|assistant|> SELECT "points_classification" FROM "classification_leadership" WHERE "general_classification"='Mark Renshaw' AND "team_classification"='Team CSC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14855908_3" ( "dvd_name" text, "episodes" real, "region_1_can" text, "region_1_us" text, "region_2_fr" text, "region_4" text ); Question: How many episodes were released on DVD in the US on October 13, 2009? <|assistant|> SELECT "episodes" FROM "table1_14855908_3" WHERE "region_1_us"='October 13, 2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14855908_3" ( "dvd_name" text, "episodes" real, "region_1_can" text, "region_1_us" text, "region_2_fr" text, "region_4" text ); Question: How many episodes were put out in Region 4 on March 4, 2010? <|assistant|> SELECT MAX("episodes") FROM "table1_14855908_3" WHERE "region_4"='March 4, 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14855908_3" ( "dvd_name" text, "episodes" real, "region_1_can" text, "region_1_us" text, "region_2_fr" text, "region_4" text ); Question: How many episodes were released in the season 1 DVD? <|assistant|> SELECT MIN("episodes") FROM "table1_14855908_3" WHERE "dvd_name"='Season 1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14857583_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: What is the original air date for "runaway"? <|assistant|> SELECT "original_air_date" FROM "table1_14857583_1" WHERE "title"='\"Runaway\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_artificial_radiation_belts" ( "explosion" text, "location" text, "date" text, "yield_approximate" text, "altitude_km" text, "nation_of_origin" text ); Question: What was the altitude of the explosion Hardtack Teak? <|assistant|> SELECT "altitude_km" FROM "list_of_artificial_radiation_belts" WHERE "explosion"='Hardtack Teak';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_artificial_radiation_belts" ( "explosion" text, "location" text, "date" text, "yield_approximate" text, "altitude_km" text, "nation_of_origin" text ); Question: What was the altitude of the event on 1962-07-09? <|assistant|> SELECT "altitude_km" FROM "list_of_artificial_radiation_belts" WHERE "date"='1962-07-09';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_artificial_radiation_belts" ( "explosion" text, "location" text, "date" text, "yield_approximate" text, "altitude_km" text, "nation_of_origin" text ); Question: What was the altitude of the yield of 1.4 megatons? <|assistant|> SELECT "altitude_km" FROM "list_of_artificial_radiation_belts" WHERE "yield_approximate"='1.4 megatons';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_artificial_radiation_belts" ( "explosion" text, "location" text, "date" text, "yield_approximate" text, "altitude_km" text, "nation_of_origin" text ); Question: What was the yield of the K-4 explosion? <|assistant|> SELECT "yield_approximate" FROM "list_of_artificial_radiation_belts" WHERE "explosion"='K-4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_artificial_radiation_belts" ( "explosion" text, "location" text, "date" text, "yield_approximate" text, "altitude_km" text, "nation_of_origin" text ); Question: What explosion had an altitude of 539 km? <|assistant|> SELECT "explosion" FROM "list_of_artificial_radiation_belts" WHERE "altitude_km"='539';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" real ); Question: List all opponents in the September 23, 1984 game? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "date"='September 23, 1984';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" real ); Question: What was the score in the game played on December 2, 1984? <|assistant|> SELECT "record" FROM "schedule" WHERE "date"='December 2, 1984';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" real ); Question: How many scores were there in week 11? <|assistant|> SELECT COUNT("record") FROM "schedule" WHERE "week"=11;<|endoftext|>