text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_broadcast_and_ratings" ( "season" real, "timeslot_et" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_millions" text ); Question: What is the season year where the rank is 39? <|assistant|> SELECT "tv_season" FROM "u_s_broadcast_and_ratings" WHERE "rank"='39';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_broadcast_and_ratings" ( "season" real, "timeslot_et" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_millions" text ); Question: What is the number of season premieres were 10.17 people watched? <|assistant|> SELECT COUNT("season_premiere") FROM "u_s_broadcast_and_ratings" WHERE "viewers_millions"='10.17';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_broadcast_and_ratings" ( "season" real, "timeslot_et" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_millions" text ); Question: What is the year of the season that was 12? <|assistant|> SELECT "tv_season" FROM "u_s_broadcast_and_ratings" WHERE "season"=12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: In 2012 what was the average finish? <|assistant|> SELECT "avg_finish" FROM "nascar_sprint_cup_series" WHERE "year"=2012;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: How many wins happened in 1983? <|assistant|> SELECT MIN("wins") FROM "nascar_sprint_cup_series" WHERE "year"=1983;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: How many top tens had an average start of 29.4? <|assistant|> SELECT COUNT("top_10") FROM "nascar_sprint_cup_series" WHERE "avg_start"='29.4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: How many poles had an average finish of 19.1? <|assistant|> SELECT MAX("poles") FROM "nascar_sprint_cup_series" WHERE "avg_finish"='19.1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: How many starts did Hendrick motorsports have? <|assistant|> SELECT MIN("starts") FROM "nascar_sprint_cup_series" WHERE "team_s"='Hendrick Motorsports';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_ten" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: NHL players are all centre in Florida panthers. <|assistant|> SELECT "player" FROM "round_ten" WHERE "position"='Centre' AND "nhl_team"='Florida Panthers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_ten" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: NHL team player San Jose Sharks is United States nationally. <|assistant|> SELECT "player" FROM "round_ten" WHERE "nhl_team"='San Jose Sharks' AND "nationality"='United States';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_ten" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: All players are position mark polak. <|assistant|> SELECT "position" FROM "round_ten" WHERE "player"='Mark Polak';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_ten" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Position in nhl team centre are all smaller pick than 243.0 <|assistant|> SELECT "nhl_team" FROM "round_ten" WHERE "position"='Centre' AND "pick"<243.0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_eleven" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What college/junior/club teams do the players from the St. Louis Blues come from? <|assistant|> SELECT "college_junior_club_team" FROM "round_eleven" WHERE "nhl_team"='St. Louis Blues';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_eleven" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What teams do the players from TPS (Finland) play for? <|assistant|> SELECT "nhl_team" FROM "round_eleven" WHERE "college_junior_club_team"='TPS (Finland)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_eleven" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What high school team did Doug Nolan play for? <|assistant|> SELECT "college_junior_club_team" FROM "round_eleven" WHERE "player"='Doug Nolan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_eleven" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What club team is Per Gustafsson play for? <|assistant|> SELECT "college_junior_club_team" FROM "round_eleven" WHERE "player"='Per Gustafsson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_eleven" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What is the nationality of Shayne Wright? <|assistant|> SELECT "nationality" FROM "round_eleven" WHERE "player"='Shayne Wright';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "voting" ( "song" text, "mobiles" real, "northern_ireland" real, "northern_england" real, "scotland" real, "southern_england" real, "wales" real, "total" real ); Question: How many votes did Southern England cast whilst Northern Ireland cast 3? <|assistant|> SELECT "southern_england" FROM "voting" WHERE "northern_ireland"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "voting" ( "song" text, "mobiles" real, "northern_ireland" real, "northern_england" real, "scotland" real, "southern_england" real, "wales" real, "total" real ); Question: What was the lowest number of votes Scotland cast? <|assistant|> SELECT MIN("scotland") FROM "voting";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "voting" ( "song" text, "mobiles" real, "northern_ireland" real, "northern_england" real, "scotland" real, "southern_england" real, "wales" real, "total" real ); Question: What is the total number of votes if Scotland cast 35? <|assistant|> SELECT COUNT("scotland") FROM "voting" WHERE "total"=35;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "voting" ( "song" text, "mobiles" real, "northern_ireland" real, "northern_england" real, "scotland" real, "southern_england" real, "wales" real, "total" real ); Question: How many votes did Northern Ireland cast if the total was 35? <|assistant|> SELECT "northern_ireland" FROM "voting" WHERE "total"=35;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "voting" ( "song" text, "mobiles" real, "northern_ireland" real, "northern_england" real, "scotland" real, "southern_england" real, "wales" real, "total" real ); Question: How many votes did Wales cast when Northern England cast 6? <|assistant|> SELECT MIN("wales") FROM "voting" WHERE "northern_england"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: What teams had 9 in the top 5 and 1 wins? <|assistant|> SELECT "team_s" FROM "nascar_nationwide_series" WHERE "top_5"=9 AND "wins"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What teams did the player vadim sharifijanov play for? <|assistant|> SELECT "college_junior_club_team" FROM "round_one" WHERE "player"='Vadim Sharifijanov';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What positions do the hartford whalers nhl team have? <|assistant|> SELECT "position" FROM "round_one" WHERE "nhl_team"='Hartford Whalers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What is the smallest pick for the player, brett lindros? <|assistant|> SELECT MIN("pick") FROM "round_one" WHERE "player"='Brett Lindros';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What positions does the college/junior/club team, molot perm (russia) have? <|assistant|> SELECT "position" FROM "round_one" WHERE "college_junior_club_team"='Molot Perm (Russia)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: The nhl team new york islanders is what nationality? <|assistant|> SELECT "nationality" FROM "round_one" WHERE "nhl_team"='New York Islanders';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1013168_3" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: What is the name of the vacator for district Louisiana 1st? <|assistant|> SELECT "vacator" FROM "table1_1013168_3" WHERE "district"='Louisiana 1st';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "critical_temperature_t_c_crystal_structu" ( "formula" text, "notation" text, "t_c_k" real, "no_of_cu_o_planes_in_unit_cell" real, "crystal_structure" text ); Question: What is the notion when the crystal structure is tetragonal and the formula is bi 2 sr 2 cacu 2 o 8 <|assistant|> SELECT "notation" FROM "critical_temperature_t_c_crystal_structu" WHERE "crystal_structure"='Tetragonal' AND "formula"='Bi 2 Sr 2 CaCu 2 O 8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "critical_temperature_t_c_crystal_structu" ( "formula" text, "notation" text, "t_c_k" real, "no_of_cu_o_planes_in_unit_cell" real, "crystal_structure" text ); Question: How many times is the formula tl 2 ba 2 cuo 6? <|assistant|> SELECT "no_of_cu_o_planes_in_unit_cell" FROM "critical_temperature_t_c_crystal_structu" WHERE "formula"='Tl 2 Ba 2 CuO 6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "critical_temperature_t_c_crystal_structu" ( "formula" text, "notation" text, "t_c_k" real, "no_of_cu_o_planes_in_unit_cell" real, "crystal_structure" text ); Question: What is the crystal structure for the formula yba 2 cu 3 o 7? <|assistant|> SELECT "crystal_structure" FROM "critical_temperature_t_c_crystal_structu" WHERE "formula"='YBa 2 Cu 3 O 7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "critical_temperature_t_c_crystal_structu" ( "formula" text, "notation" text, "t_c_k" real, "no_of_cu_o_planes_in_unit_cell" real, "crystal_structure" text ); Question: What is the number for t c (k) when the notation is tl-2212? <|assistant|> SELECT COUNT("t_c_k") FROM "critical_temperature_t_c_crystal_structu" WHERE "notation"='Tl-2212';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "num" real, "city" text, "1981_census" real, "1991_census" real, "2001_census" real, "2010_est" real, "region" text ); Question: How many 2010 estimations have been done in the city of Cremona? <|assistant|> SELECT COUNT("2010_est") FROM "references" WHERE "city"='Cremona';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "num" real, "city" text, "1981_census" real, "1991_census" real, "2001_census" real, "2010_est" real, "region" text ); Question: What's the 2001 census of the region of Abruzzo where the 1871 census is bigger than 51092.0? <|assistant|> SELECT MIN("2001_census") FROM "references" WHERE "region"='Abruzzo' AND "1981_census">51092.0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "num" real, "city" text, "1981_census" real, "1991_census" real, "2001_census" real, "2010_est" real, "region" text ); Question: What's the 1991 census of the city of Carpi? <|assistant|> SELECT MAX("1991_census") FROM "references" WHERE "city"='Carpi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "num" real, "city" text, "1981_census" real, "1991_census" real, "2001_census" real, "2010_est" real, "region" text ); Question: How many 2001 censuses are there on number 13? <|assistant|> SELECT COUNT("2001_census") FROM "references" WHERE "num"=13;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "num" real, "city" text, "1981_census" real, "1991_census" real, "2001_census" real, "2010_est" real, "region" text ); Question: What's the 1981 census of Livorno? <|assistant|> SELECT "1981_census" FROM "references" WHERE "city"='Livorno';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_eight" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Which NHL team has player Mike Loach? <|assistant|> SELECT "nhl_team" FROM "round_eight" WHERE "player"='Mike Loach';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_eight" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What is the NHL team that has Peter Strom? <|assistant|> SELECT "nhl_team" FROM "round_eight" WHERE "player"='Peter Strom';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_eight" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What team is Keith Mccambridge on? <|assistant|> SELECT "college_junior_club_team" FROM "round_eight" WHERE "player"='Keith McCambridge';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_eight" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: How many nationalities are the pick 193? <|assistant|> SELECT COUNT("nationality") FROM "round_eight" WHERE "pick"=193;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1013168_2" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successors_formal_installation" text ); Question: Who was the succesor that was formally installed on November 8, 1978? <|assistant|> SELECT "successor" FROM "table1_1013168_2" WHERE "date_of_successors_formal_installation"='November 8, 1978';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1014319_1" ( "week" real, "dance_song" text, "horwood" text, "goodman" text, "dixon" text, "tonioli" text, "total" text, "result" text ); Question: How many songs received a 10 from Goodman and were rated by Tonioli? <|assistant|> SELECT COUNT("tonioli") FROM "table1_1014319_1" WHERE "goodman"='10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1014319_1" ( "week" real, "dance_song" text, "horwood" text, "goodman" text, "dixon" text, "tonioli" text, "total" text, "result" text ); Question: What score did Goodman give to all songs with safe results, which received a 7 from Horwood and have a total score of 31? <|assistant|> SELECT "goodman" FROM "table1_1014319_1" WHERE "total"='31' AND "horwood"='7' AND "result"='Safe';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1014319_1" ( "week" real, "dance_song" text, "horwood" text, "goodman" text, "dixon" text, "tonioli" text, "total" text, "result" text ); Question: What score did Dixon give to the song "samba / young hearts run free", which was in second place? <|assistant|> SELECT "dixon" FROM "table1_1014319_1" WHERE "dance_song"='Samba / Young Hearts Run Free' AND "result"='Second place';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1014319_1" ( "week" real, "dance_song" text, "horwood" text, "goodman" text, "dixon" text, "tonioli" text, "total" text, "result" text ); Question: How many scores did Goodman give to "samba / young hearts run free", which was in second place? <|assistant|> SELECT COUNT("goodman") FROM "table1_1014319_1" WHERE "result"='Second place' AND "dance_song"='Samba / Young Hearts Run Free';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_fleet_details" ( "class" text, "operator" text, "no_built" real, "year_built" text, "cars_per_set" real, "unit_nos" text ); Question: What year was number 7 built? <|assistant|> SELECT "year_built" FROM "current_fleet_details" WHERE "no_built"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominal_morphology" ( "case_suffix" text, "we_two" text, "you_and_i" text, "you_two" text, "them_two_the_two" text, "who_two" text ); Question: What is we two when the case/suffix is loc.? <|assistant|> SELECT "we_two" FROM "nominal_morphology" WHERE "case_suffix"='loc.';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominal_morphology" ( "case_suffix" text, "we_two" text, "you_and_i" text, "you_two" text, "them_two_the_two" text, "who_two" text ); Question: What is them two (the two) when we two is ngalbelpa? <|assistant|> SELECT "them_two_the_two" FROM "nominal_morphology" WHERE "we_two"='ngalbelpa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominal_morphology" ( "case_suffix" text, "we_two" text, "you_and_i" text, "you_two" text, "them_two_the_two" text, "who_two" text ); Question: What is them two (the two) when you and i is ngœbalngu? <|assistant|> SELECT "them_two_the_two" FROM "nominal_morphology" WHERE "you_and_i"='ngœbalngu';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominal_morphology" ( "case_suffix" text, "we_two" text, "you_and_i" text, "you_two" text, "them_two_the_two" text, "who_two" text ); Question: What is who-two where you and i is ngœban? <|assistant|> SELECT "who_two" FROM "nominal_morphology" WHERE "you_and_i"='ngœban';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominal_morphology" ( "case_suffix" text, "we_two" text, "you_and_i" text, "you_two" text, "them_two_the_two" text, "who_two" text ); Question: What is we two where you two is ngipen? <|assistant|> SELECT "we_two" FROM "nominal_morphology" WHERE "you_two"='ngipen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominal_morphology" ( "case_suffix" text, "we_two" text, "you_and_i" text, "you_two" text, "them_two_the_two" text, "who_two" text ); Question: What is who-two when you two is ngipelngu? <|assistant|> SELECT "who_two" FROM "nominal_morphology" WHERE "you_two"='ngipelngu';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_results" ( "position" real, "driver" text, "points" real, "winnings" text, "series" text ); Question: what's the points with driver  mark martin <|assistant|> SELECT "points" FROM "race_results" WHERE "driver"='Mark Martin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_results" ( "position" real, "driver" text, "points" real, "winnings" text, "series" text ); Question: what's the points with driver  rusty wallace <|assistant|> SELECT "points" FROM "race_results" WHERE "driver"='Rusty Wallace';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_results" ( "position" real, "driver" text, "points" real, "winnings" text, "series" text ); Question: what's the total number of position with driver  robby gordon <|assistant|> SELECT COUNT("position") FROM "race_results" WHERE "driver"='Robby Gordon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_results" ( "position" real, "driver" text, "points" real, "winnings" text, "series" text ); Question: what's the maximum position with winnings  $50,000 <|assistant|> SELECT MAX("position") FROM "race_results" WHERE "winnings"='$50,000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_2003_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); Question: What actor was nominted for an award in the film Anastasiya Slutskaya? <|assistant|> SELECT "actors_name" FROM "stozhary_2003_prize_winners" WHERE "film_name"='Anastasiya Slutskaya';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_2003_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); Question: What was the film Falling up nominated for? <|assistant|> SELECT "nomination" FROM "stozhary_2003_prize_winners" WHERE "film_name"='Falling Up';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_2003_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); Question: What is the name of the actress that was nominated for best actress in a leading role in the film Chopin: Desire for love? <|assistant|> SELECT "actors_name" FROM "stozhary_2003_prize_winners" WHERE "film_name"='Chopin: Desire for Love' AND "nomination"='Best Actress in a Leading Role';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_2003_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); Question: What is the name of the actress that was nominated for best actress in a leading role in the film Chopin: Desire for love? <|assistant|> SELECT "actors_name" FROM "stozhary_2003_prize_winners" WHERE "film_name"='Chopin: Desire for Love' AND "nomination"='Best Actress in a Leading Role';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_2003_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); Question: Which films does the actor Alla Sergiyko star in? <|assistant|> SELECT "film_name" FROM "stozhary_2003_prize_winners" WHERE "actors_name"='Alla Sergiyko';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_2003_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); Question: Which nominations was the film 27 Stolen Kisses nominated for? <|assistant|> SELECT "nomination" FROM "stozhary_2003_prize_winners" WHERE "film_name"='27 Stolen Kisses';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_99_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); Question: Which actor from Serbia was nominated for best actor in a supporting role? <|assistant|> SELECT "actors_name" FROM "stozhary_99_prize_winners" WHERE "nomination"='Best Actor in a Supporting Role' AND "country"='Serbia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_99_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); Question: Vsevolod Shilovskiy is from what country? <|assistant|> SELECT "country" FROM "stozhary_99_prize_winners" WHERE "actors_name"='Vsevolod Shilovskiy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_99_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); Question: Which nominations are connected to the film Totalitarian Romance? <|assistant|> SELECT "nomination" FROM "stozhary_99_prize_winners" WHERE "film_name"='Totalitarian Romance';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_99_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); Question: Srdjan Dragojevic worked on a film which earned what nomination? <|assistant|> SELECT "nomination" FROM "stozhary_99_prize_winners" WHERE "director"='Srdjan Dragojevic';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_99_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); Question: Which actors are from Ukraine? <|assistant|> SELECT "actors_name" FROM "stozhary_99_prize_winners" WHERE "country"='Ukraine';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_95_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); Question: What was the film that vadim ilyenko directed? <|assistant|> SELECT "film_name" FROM "stozhary_95_prize_winners" WHERE "director"='Vadim Ilyenko';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_95_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); Question: What was the actors name that vadim ilyenko directed? <|assistant|> SELECT "actors_name" FROM "stozhary_95_prize_winners" WHERE "director"='Vadim Ilyenko';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_95_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); Question: What was the actors name for fuchzhou and nomination was best non-professional actor? <|assistant|> SELECT "actors_name" FROM "stozhary_95_prize_winners" WHERE "film_name"='Fuchzhou' AND "nomination"='Best Non-Professional Actor';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_95_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); Question: What film did michaylo ilyenko make with best actor in a supporting role? <|assistant|> SELECT "film_name" FROM "stozhary_95_prize_winners" WHERE "director"='Michaylo Ilyenko' AND "nomination"='Best Actor in a Supporting Role';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_95_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); Question: What was the actor's name for best debut? <|assistant|> SELECT "actors_name" FROM "stozhary_95_prize_winners" WHERE "nomination"='Best Debut';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_95_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); Question: What was the number of nominations for natalia raskokoha? <|assistant|> SELECT COUNT("nomination") FROM "stozhary_95_prize_winners" WHERE "actors_name"='Natalia Raskokoha';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "barnsley" ( "season" text, "division" text, "league_apps" real, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real ); Question: What is the highest value of Total Goals? <|assistant|> SELECT MAX("total_goals") FROM "barnsley";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "barnsley" ( "season" text, "division" text, "league_apps" real, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real ); Question: When FA Cup Apps is 9 what is the smallest number of FA Cup Goals? <|assistant|> SELECT MIN("fa_cup_goals") FROM "barnsley" WHERE "fa_cup_apps"=9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "barnsley" ( "season" text, "division" text, "league_apps" real, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real ); Question: What is the smallest number of Total Goals? <|assistant|> SELECT MIN("total_goals") FROM "barnsley";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); Question: What circuit was the race where Hideki Mutoh had the fastest lap? <|assistant|> SELECT "circuit" FROM "race_calendar_and_results" WHERE "fastest_lap"='Hideki Mutoh';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10269427_3" ( "episode_num" real, "production_code" real, "title" text, "directed_by" text, "written_by" text, "airdate" text ); Question: what is the minimum production code with title "foreign exchange problem / turn about" <|assistant|> SELECT MIN("production_code") FROM "table1_10269427_3" WHERE "title"='\"Foreign Exchange Problem / Turn About\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10269427_3" ( "episode_num" real, "production_code" real, "title" text, "directed_by" text, "written_by" text, "airdate" text ); Question: what is the episode # for title "the yindianapolis 500 / personality problem" <|assistant|> SELECT "episode_num" FROM "table1_10269427_3" WHERE "title"='\"The Yindianapolis 500 / Personality Problem\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10269427_3" ( "episode_num" real, "production_code" real, "title" text, "directed_by" text, "written_by" text, "airdate" text ); Question: what is the episode # for production code 227 <|assistant|> SELECT "episode_num" FROM "table1_10269427_3" WHERE "production_code"=227;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10269427_3" ( "episode_num" real, "production_code" real, "title" text, "directed_by" text, "written_by" text, "airdate" text ); Question: who directed the movie written by is sib ventress / aydrea ten bosch <|assistant|> SELECT "directed_by" FROM "table1_10269427_3" WHERE "written_by"='Sib Ventress / Aydrea ten Bosch';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10269427_3" ( "episode_num" real, "production_code" real, "title" text, "directed_by" text, "written_by" text, "airdate" text ); Question: what is the production code with title "skirting the issue / moon over my yinnie" <|assistant|> SELECT "production_code" FROM "table1_10269427_3" WHERE "title"='\"Skirting the Issue / Moon Over my Yinnie\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sheffield_united" ( "season" text, "division" text, "league_apps" real, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real ); Question: Whatis the number of total goals maximum? <|assistant|> SELECT MAX("total_goals") FROM "sheffield_united";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technology_overview" ( "assembly_type" text, "adhesive_type" text, "time_sec" text, "temp_c" text, "pressure" text ); Question: HOW MANY TEMPERATURE INTERVALS ARE POSSIBLE TO USE WITH ACRYL? <|assistant|> SELECT COUNT("temp_c") FROM "technology_overview" WHERE "adhesive_type"='Acryl';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_6_3_titles_3_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: How many matches where played with Jim Pugh? <|assistant|> SELECT COUNT("opponents") FROM "mixed_doubles_6_3_titles_3_runner_ups" WHERE "partner"='Jim Pugh';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_6_3_titles_3_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What is the score with partner Jim Pugh? <|assistant|> SELECT "score" FROM "mixed_doubles_6_3_titles_3_runner_ups" WHERE "partner"='Jim Pugh';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_6_3_titles_3_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: How many matched scored 3–6, 7–6(5), 6–3? <|assistant|> SELECT COUNT("surface") FROM "mixed_doubles_6_3_titles_3_runner_ups" WHERE "score"='3–6, 7–6(5), 6–3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_6_3_titles_3_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What is the score of the match with partner Jim Pugh? <|assistant|> SELECT "score" FROM "mixed_doubles_6_3_titles_3_runner_ups" WHERE "partner"='Jim Pugh';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_6_3_titles_3_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What year was the championship in Wimbledon (2)? <|assistant|> SELECT "year" FROM "mixed_doubles_6_3_titles_3_runner_ups" WHERE "championship"='Wimbledon (2)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_6_3_titles_3_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What is the score of the match with opponents Gretchen Magers Kelly Jones? <|assistant|> SELECT "score" FROM "mixed_doubles_6_3_titles_3_runner_ups" WHERE "opponents"='Gretchen Magers Kelly Jones';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical" ( "begin_date" text, "end_date" text, "representative" text, "date_of_birth" text, "house_term" text, "state_served" text, "party" text, "age_years_days" text ); Question: How many birthdays does Earl Hanley Beshlin have? <|assistant|> SELECT COUNT("date_of_birth") FROM "historical" WHERE "representative"='Earl Hanley Beshlin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical" ( "begin_date" text, "end_date" text, "representative" text, "date_of_birth" text, "house_term" text, "state_served" text, "party" text, "age_years_days" text ); Question: Which politican party has a birthday of November 10, 1880 <|assistant|> SELECT "party" FROM "historical" WHERE "date_of_birth"='November 10, 1880';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical" ( "begin_date" text, "end_date" text, "representative" text, "date_of_birth" text, "house_term" text, "state_served" text, "party" text, "age_years_days" text ); Question: Which representative has a birthday of January 31, 1866? <|assistant|> SELECT "representative" FROM "historical" WHERE "date_of_birth"='January 31, 1866';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_team" ( "player" text, "current_singles_ranking" text, "current_doubles_ranking" text, "first_year_played" real, "ties_played" real, "total_w_l" text, "singles_w_l" text, "doubles_w_l" text ); Question: What is the Singles W-L for the players named Laurynas Grigelis? <|assistant|> SELECT "singles_w_l" FROM "current_team" WHERE "player"='Laurynas Grigelis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_team" ( "player" text, "current_singles_ranking" text, "current_doubles_ranking" text, "first_year_played" real, "ties_played" real, "total_w_l" text, "singles_w_l" text, "doubles_w_l" text ); Question: What is the Current singles ranking for the player named Mantas Bugailiškis? <|assistant|> SELECT "current_singles_ranking" FROM "current_team" WHERE "player"='Mantas Bugailiškis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast_of_major_productions_1954_1999" ( "character" text, "1954_broadway" text, "1955_broadcast" text, "1960_broadcast" text, "1979_broadway" text, "1990_broadway" text, "1991_broadway" text, "1998_broadway" text, "1999_broadway" text ); Question: How many playerd Mrs. Darling in the 1999 Broadway? <|assistant|> SELECT COUNT("1999_broadway") FROM "cast_of_major_productions_1954_1999" WHERE "character"='Mrs. Darling';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast_of_major_productions_1954_1999" ( "character" text, "1954_broadway" text, "1955_broadcast" text, "1960_broadcast" text, "1979_broadway" text, "1990_broadway" text, "1991_broadway" text, "1998_broadway" text, "1999_broadway" text ); Question: Who played Peter Pan in the 1990 Broadway? <|assistant|> SELECT "1990_broadway" FROM "cast_of_major_productions_1954_1999" WHERE "character"='Peter Pan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast_of_major_productions_1954_1999" ( "character" text, "1954_broadway" text, "1955_broadcast" text, "1960_broadcast" text, "1979_broadway" text, "1990_broadway" text, "1991_broadway" text, "1998_broadway" text, "1999_broadway" text ); Question: Who played in the 1991 Broadway before Barbara McCulloh played the part in the 1999 Broadway? <|assistant|> SELECT "1991_broadway" FROM "cast_of_major_productions_1954_1999" WHERE "1999_broadway"='Barbara McCulloh';<|endoftext|>