text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_performances_on" ( "week" text, "theme" text, "song_sung" text, "artist" text, "status" text ); Question: Which song was sung by Artist Luther Vandross in the Week Top 20? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_performances_on" ( "week" text, "theme" text, "song_sung" text, "artist" text, "status" text ); Question: Which Artist has a Week of Top 12? <|assistant|> SELECT "artist" FROM "list_of_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_performances_on" ( "week" text, "theme" text, "song_sung" text, "artist" text, "status" text ); Question: What Status does Freddie Jackson have? <|assistant|> SELECT "status" FROM "list...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_performances_on" ( "week" text, "theme" text, "song_sung" text, "artist" text, "status" text ); Question: Which Song Sung has a Status of Eliminated? <|assistant|> SELECT "song_sung" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What is the place of the player with a 71-69-66=206 score? <|assistant|> SELECT "place" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What is the place of the player with a 71-66-64=201 score? <|assistant|> SELECT "place" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What is the to par of player peter senior? <|assistant|> SELECT "to_par" FROM "third_round" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "prize_list" ( "year" real, "champion" text, "finalist" text, "score" text, "place" text ); Question: What is Finalist, when Year is "2008"? <|assistant|> SELECT "finalist" FROM "prize_list" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "prize_list" ( "year" real, "champion" text, "finalist" text, "score" text, "place" text ); Question: What is Place, when Year is greater than 2006, and when Champion is "Asvel"? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "prize_list" ( "year" real, "champion" text, "finalist" text, "score" text, "place" text ); Question: What is Champion, when Year is greater than 2007, and when Finalist is "Asvel"? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "m_ps_1832_1885" ( "election" text, "first_member" text, "1st_party" text, "second_member" text, "2nd_party" text ); Question: What is Election, when 2nd Party is "Constituency Abolished"? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "m_ps_1832_1885" ( "election" text, "first_member" text, "1st_party" text, "second_member" text, "2nd_party" text ); Question: What is 2nd Party, when Election is "1865"? <|assistant|> SELECT "2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "m_ps_1832_1885" ( "election" text, "first_member" text, "1st_party" text, "second_member" text, "2nd_party" text ); Question: What is Election, when 2nd Party is "Conservative", and when First ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "m_ps_1832_1885" ( "election" text, "first_member" text, "1st_party" text, "second_member" text, "2nd_party" text ); Question: What is First Member, when Election is "1871 by-election"? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "m_ps_1832_1885" ( "election" text, "first_member" text, "1st_party" text, "second_member" text, "2nd_party" text ); Question: What is 1st Party, when First Member is "Peter John Locke King", an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "m_ps_1832_1885" ( "election" text, "first_member" text, "1st_party" text, "second_member" text, "2nd_party" text ); Question: What is Second Member, when Election is "1835"? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the highest total when bronze is less than 1 and gold more than 0? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: what is the sum of bronze when the rank is 5, the nation is poland and gold is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: what is the sum of silver when the rank is 3, nation is france and bronze is le...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many times is the nation china and bronze more than 0? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many times is the rank higher than 3 and bronze more than 1? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: what is the least silver when bronze is 1, rank is less than 2 and gold is more...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_ladder_and_finals" ( "benalla_dfl" text, "wins" real, "losses" real, "draws" real, "byes" real, "against" real ); Question: What is the average value for Draws, when Against is "2177", a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_ladder_and_finals" ( "benalla_dfl" text, "wins" real, "losses" real, "draws" real, "byes" real, "against" real ); Question: What is the total number of Losses, when Wins is "16", and whe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_ladder_and_finals" ( "benalla_dfl" text, "wins" real, "losses" real, "draws" real, "byes" real, "against" real ); Question: What is the lowest value for Draws, when Losses is "0", and wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_ladder_and_finals" ( "benalla_dfl" text, "wins" real, "losses" real, "draws" real, "byes" real, "against" real ); Question: What is the highest value for Byes, when Wins is less than 16,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_ladder_and_finals" ( "benalla_dfl" text, "wins" real, "losses" real, "draws" real, "byes" real, "against" real ); Question: What is the highest value for Byes, when Against is less than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1_fc_nuremberg_versus_sp_vgg_f_rth" ( "season" text, "league" text, "teams" text, "home" text, "away" text ); Question: what is the teams for season 1950-51? <|assistant|> SELECT "teams" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1_fc_nuremberg_versus_sp_vgg_f_rth" ( "season" text, "league" text, "teams" text, "home" text, "away" text ); Question: What is the league for season 1955-56? <|assistant|> SELECT "league" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "florida_league_alumni_top_5_round_picks_" ( "player" text, "fcsl_team" text, "years_played" text, "year_drafted" real, "round" text, "mlb_team" text ); Question: What is the drafted year when...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "florida_league_alumni_top_5_round_picks_" ( "player" text, "fcsl_team" text, "years_played" text, "year_drafted" real, "round" text, "mlb_team" text ); Question: What is the FCSL Team when th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What was John Fought's score? <|assistant|> SELECT "score" FROM "final...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); Question: What is the to par of the player from Argentina with a t8 place? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); Question: How much money does the player with a 68-67-69-71=275 score have? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); Question: What is the country of t1 place player wayne grady? <|assistant|> SELECT "co...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); Question: How much money does the player with a 68-71-68-72=279 score have? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); Question: How much money does the player with a 69-70-72-64=275 score have? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What was the money when the place was t8 and the score was 74-72-75-71...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What was the average money when the score was 74-72-75-71=292? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What was Tim Simpson's place? <|assistant|> SELECT "place" FROM "final...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What country placed 3? <|assistant|> SELECT "country" FROM "final_lead...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "typical_heavy_naphtha_feedstocks" ( "crude_oil_name_rightarrow_location_rightarrow" text, "barrow_island_australia" real, "mutineer_exeter_australia" real, "cpc_blend_kazakhstan" real, "draugen_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "typical_heavy_naphtha_feedstocks" ( "crude_oil_name_rightarrow_location_rightarrow" text, "barrow_island_australia" real, "mutineer_exeter_australia" real, "cpc_blend_kazakhstan" real, "draugen_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "typical_heavy_naphtha_feedstocks" ( "crude_oil_name_rightarrow_location_rightarrow" text, "barrow_island_australia" real, "mutineer_exeter_australia" real, "cpc_blend_kazakhstan" real, "draugen_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "typical_heavy_naphtha_feedstocks" ( "crude_oil_name_rightarrow_location_rightarrow" text, "barrow_island_australia" real, "mutineer_exeter_australia" real, "cpc_blend_kazakhstan" real, "draugen_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: What race did eugenio silvani win? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: Which race did Mercedes win? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: Which circuit did alfa romeo win? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passenger_train_locomotives" ( "class" text, "number_range" text, "quantity" text, "year_s_built" text, "type" text ); Question: What is the number range for the 56 quantity? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "daytona_500_results" ( "year" real, "manufacturer" text, "start" text, "finish" text, "team" text ); Question: Which team in 1987 had a start of 28 and drove a chrysler? <|assistant|> SELECT "t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tennessee" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); Question: What is Party, when District is "Tennessee 8"? <|assistant|> SELECT "party" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tennessee" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); Question: What is the total number of First Elected, when Party is "Democratic", and when D...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tennessee" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); Question: What is the lowest First Elected, when Results is "Re-elected", and when Incumben...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tennessee" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); Question: What is the highest First Elected, when Results is "Re-elected", and when Incumbe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "economics" ( "commercial_balance" text, "2003" real, "2004" real, "2005" real, "2006" real ); Question: Which 2004 has a 2006 of 4,67, and a 2005 larger than 7,77? <|assistant|> SELECT MIN("200...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "economics" ( "commercial_balance" text, "2003" real, "2004" real, "2005" real, "2006" real ); Question: How much 2005 has a 2006 larger than 4,67, and a 2004 of -14,76? <|assistant|> SELECT COU...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "economics" ( "commercial_balance" text, "2003" real, "2004" real, "2005" real, "2006" real ); Question: Which 2004 has a 2005 larger than -80,04, and a 2003 of 36,60? <|assistant|> SELECT MAX("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "economics" ( "commercial_balance" text, "2003" real, "2004" real, "2005" real, "2006" real ); Question: Which 2005 has a 2003 of -13,25, and a 2004 smaller than -8,37? <|assistant|> SELECT MIN(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is the Status of the 44 Against? <|assistant|> SELECT "status" FROM "2008" WHERE "again...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is the date of the 42 Against? <|assistant|> SELECT "date" FROM "2008" WHERE "against"=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_both_cuts" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real, "finish" text ); Question: What is the total number for Seve Ballesteros? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_both_cuts" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real, "finish" text ); Question: What is the lowest to par for Bob Charles? <|assistant|> SELECT MIN...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serbia_and_montenegro" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text ); Question: Who is born on 1982-01-29? <|assistant|> SELECT "name" FROM "ser...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serbia_and_montenegro" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text ); Question: What is the position played by the man born on 1976-09-20? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real ); Question: What country was the golfer with a score of 72-72-72=216 representing? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "recent_divisional_champions" ( "season" text, "premier_division" text, "division_one" text, "division_two" text, "division_three" text ); Question: Which Division Two team were champions as the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "recent_divisional_champions" ( "season" text, "premier_division" text, "division_one" text, "division_two" text, "division_three" text ); Question: Which Season was the Division Three Hampton P...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "recent_divisional_champions" ( "season" text, "premier_division" text, "division_one" text, "division_two" text, "division_three" text ); Question: Which Season was the Division Two Fownhope Re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "recent_divisional_champions" ( "season" text, "premier_division" text, "division_one" text, "division_two" text, "division_three" text ); Question: What Division One team were champions at the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "recent_divisional_champions" ( "season" text, "premier_division" text, "division_one" text, "division_two" text, "division_three" text ); Question: Which year were both the Premier Division Ewy...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "name" text, "volume" text, "engine" text, "fuel" text, "output" text, "torque" text, "engine_id_code_s" text, "0_100km_h_s" real, "top_speed" text, "years" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "name" text, "volume" text, "engine" text, "fuel" text, "output" text, "torque" text, "engine_id_code_s" text, "0_100km_h_s" real, "top_speed" text, "years" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "name" text, "volume" text, "engine" text, "fuel" text, "output" text, "torque" text, "engine_id_code_s" text, "0_100km_h_s" real, "top_speed" text, "years" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1969" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: Who were the opposing teams on 08/02/1969? <|assistant|> SELECT "opposing_teams" FROM "1969"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1969" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is the highest number against on 12/04/1969? <|assistant|> SELECT MAX("against") FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1969" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is the venue of the match with more than 8 against and ireland as the opposing team? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: which Place has a Player of mark brooks? <|assistant|> SELECT "place" FROM "second_round" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: Which Place has a Player of justin leonard? <|assistant|> SELECT "place" FROM "second_round...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: Name the Place which has a Score of 67-71=138, united states? <|assistant|> SELECT "place" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: Name the Player which has a To par of –6? <|assistant|> SELECT "player" FROM "second_round"...
<|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, "game_site" text, "record" text, "attendance" real ); Question: What was their record on week 11? <|assistant|> SELECT ...
<|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, "game_site" text, "record" text, "attendance" real ); Question: Who did they play at Atlanta-Fulton County Stadium? <|a...
<|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, "game_site" text, "record" text, "attendance" real ); Question: What was their record when they played at Riverfront St...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "albumnum" text, "english_title" text, "chinese_traditional" text, "chinese_simplified" text, "release_date" text, "label" text ); Question: What is Another She's Label? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "albumnum" text, "english_title" text, "chinese_traditional" text, "chinese_simplified" text, "release_date" text, "label" text ); Question: What is 你 朋友's Label? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "albumnum" text, "english_title" text, "chinese_traditional" text, "chinese_simplified" text, "release_date" text, "label" text ); Question: What Label was Released on Decemb...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "albumnum" text, "english_title" text, "chinese_traditional" text, "chinese_simplified" text, "release_date" text, "label" text ); Question: What is 你 朋友's English title? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "albumnum" text, "english_title" text, "chinese_traditional" text, "chinese_simplified" text, "release_date" text, "label" text ); Question: What is the Release date of the A...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "rank" real, "champion" text, "runner_up" text, "third_place" text, "fourth_place" text, "total" real ); Question: What was the runner-up when champion is 0, 4th place is 0 and rank ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "rank" real, "champion" text, "runner_up" text, "third_place" text, "fourth_place" text, "total" real ); Question: What is the runner-up for rank of 7? <|assistant|> SELECT "runner_u...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "rank" real, "champion" text, "runner_up" text, "third_place" text, "fourth_place" text, "total" real ); Question: What is the runner-up when the total is 5? <|assistant|> SELECT "ru...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "team_1" text, "score" text, "team_2" text, "1st_round" text, "2nd_round" text ); Question: What was the score of team 2 Stade Lavallois (D1)? <|assistant|> SELECT "score" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "racing_vehicles" ( "model" text, "year" text, "type" text, "engine" text, "displacement_cc" text ); Question: What is the CC displacement for 1965? <|assistant|> SELECT "displacement_cc" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "racing_vehicles" ( "model" text, "year" text, "type" text, "engine" text, "displacement_cc" text ); Question: What year was the Grand Prix with an i8 engine and a cc displacement of 1500? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "racing_vehicles" ( "model" text, "year" text, "type" text, "engine" text, "displacement_cc" text ); Question: What type of car has the model 6cm? <|assistant|> SELECT "type" FROM "racing_vehicl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "racing_vehicles" ( "model" text, "year" text, "type" text, "engine" text, "displacement_cc" text ); Question: What cc displacement has an i6 engine in 1936? <|assistant|> SELECT "displacement_c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "racing_vehicles" ( "model" text, "year" text, "type" text, "engine" text, "displacement_cc" text ); Question: What type of car has the v16 engine? <|assistant|> SELECT "type" FROM "racing_vehic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" real, "total" real, "to_par" real ); Question: What is the total number of years won by Justin Leonard with a to par under 9? <|ass...