text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "names_in_national_languages" ( "abbr" text, "common_english" text, "french" text, "italian" text, "romansh" text ); Question: What is the french word for fribourg? <|assistant|> SELECT "french"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "names_in_national_languages" ( "abbr" text, "common_english" text, "french" text, "italian" text, "romansh" text ); Question: What is the abbr for zug? <|assistant|> SELECT "abbr" FROM "names_i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_record" ( "date" text, "race" text, "track" text, "location" text, "distance" text, "surface" text, "purse" text, "finish" text ); Question: What is the Finish on June 1, 2008? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_record" ( "date" text, "race" text, "track" text, "location" text, "distance" text, "surface" text, "purse" text, "finish" text ); Question: What is the Track in Louisville, Kentucky...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_record" ( "date" text, "race" text, "track" text, "location" text, "distance" text, "surface" text, "purse" text, "finish" text ); Question: What is the Location of the Event on Marc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_record" ( "date" text, "race" text, "track" text, "location" text, "distance" text, "surface" text, "purse" text, "finish" text ); Question: What Race has a Purse of $300,000? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_record" ( "date" text, "race" text, "track" text, "location" text, "distance" text, "surface" text, "purse" text, "finish" text ); Question: What is the Purse on January 3, 2010? <|a...
<|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 did United States place when the score was 71-70-72-68=281? <|ass...
<|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 for United States when Lanny Wadkins played...
<|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 to par when the score was 71-70-72-68=281? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ties" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "attendance" real ); Question: What is the away team of the game with an attendance of 117? <|assistant|> SELECT "away_t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "career_sr" te...
<|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, "first_party" text, "second_member" text, "second_party" text ); Question: Which election has a conservative first party, Rowland Smith a...
<|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, "first_party" text, "second_member" text, "second_party" text ); Question: Which of the first parties has second member as Charles Rober...
<|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, "first_party" text, "second_member" text, "second_party" text ); Question: Which election has second member Charles Robert Colvile, a con...
<|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, "first_party" text, "second_member" text, "second_party" text ); Question: Which of the second parties has second member Charles Robert C...
<|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, "first_party" text, "second_member" text, "second_party" text ); Question: Who is the first member in the 1868 election? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text, "source" text ); Question: WHAT IS THE SOURCE WITH A TYPE OF TRANSFER AND MEX? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text, "source" text ); Question: WHAT IS THE NAME WITH BAYER LEVERKUSEN? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text, "source" text ); Question: WHAT NAME HAS A FREE TRANSFER FREE AND RETIRED? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text, "source" text ); Question: WHAT TRANSFER FEE HAS A TYPE OF TRANSFER FOR DOS SANTO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finals_6_balls" ( "place" real, "nation" text, "all_around" real, "final" real, "total" real ); Question: What is the sum of the all around with a 37.75 total? <|assistant|> SELECT SUM("all_aro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finals_6_balls" ( "place" real, "nation" text, "all_around" real, "final" real, "total" real ); Question: What is the average final with an all around larger than 19.4 and total more than 39.9?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_effects" ( "name" text, "dates_active" text, "windspeeds" text, "pressure" text, "deaths" text ); Question: What is the name of the storm active during season aggregates? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text, "report" text ); Question: What report has tour match as the status, with an against less than 22? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text, "report" text ); Question: How many againsts have asba park, kimberley as the venue? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text, "report" text ); Question: What status has gauteng falcons as the opposing team? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text, "report" text ); Question: What opposing team has second test as the status? <|assistant|> SELECT "o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text, "report" text ); Question: What report has gauteng falcons as the opposing team? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text, "report" text ); Question: What status has 18 as the against? <|assistant|> SELECT "status" FROM "ma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_performance_in_the_latin_ame" ( "selected_caribbean_and_n_latin_america_countries" text, "internl_tourist_arrivals_2011_x1000" real, "internl_tourism_receipts_2011_million_usd" text, "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "initial_unstressed_syllables" ( "initial_syllable_open_semi_open_unstressed_vowels" text, "17th_c" text, "american" text, "british" text, "australian" text, "examples" text ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "initial_unstressed_syllables" ( "initial_syllable_open_semi_open_unstressed_vowels" text, "17th_c" text, "american" text, "british" text, "australian" text, "examples" text ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "initial_unstressed_syllables" ( "initial_syllable_open_semi_open_unstressed_vowels" text, "17th_c" text, "american" text, "british" text, "australian" text, "examples" text ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "initial_unstressed_syllables" ( "initial_syllable_open_semi_open_unstressed_vowels" text, "17th_c" text, "american" text, "british" text, "australian" text, "examples" text ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "initial_unstressed_syllables" ( "initial_syllable_open_semi_open_unstressed_vowels" text, "17th_c" text, "american" text, "british" text, "australian" text, "examples" text ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "initial_unstressed_syllables" ( "initial_syllable_open_semi_open_unstressed_vowels" text, "17th_c" text, "american" text, "british" text, "australian" text, "examples" text ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What is the date for catalog RCD 10160? <|assistant|> SELECT "date" FROM "release_histor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What country has CD format and catalog RCD 10523? <|assistant|> SELECT "country" FROM "r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalog" text ); Question: Which country is dated October 20, 1976? <|assistant|> SELECT "country" FROM "release_hi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalog" text ); Question: Which label has the catalog CDZAP22? <|assistant|> SELECT "label" FROM "release_history"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What is the date for the catalog CDZAP22 in the United Kingdom? <|assistant|> SELECT "da...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What is Place, when Score is "66", when Country is "United States", and when Player is "Dudl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What is the lowest Score, when Place is "1"? <|assistant|> SELECT MIN("score") FROM "first_r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What is To Par, when Score is "66", and when Player is "Brad Faxon"? <|assistant|> SELECT "t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pro_am_event_finals_5_4_titles_1_runner_" ( "outcome" text, "year" real, "championship" text, "opponent_in_the_final" text, "score" text ); Question: What is the Opponent in the final after 200...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); Question: What is the latest year for first elected with john hostettler as incumbent and a r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "onshore_pipelines" ( "name_year_commissioned" text, "owner_operator" text, "length" text, "maximum_diameter" text, "from_to" text, "licence_number" text ); Question: Who is the owner/operator...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "onshore_pipelines" ( "name_year_commissioned" text, "owner_operator" text, "length" text, "maximum_diameter" text, "from_to" text, "licence_number" text ); Question: What is the name of the l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "onshore_pipelines" ( "name_year_commissioned" text, "owner_operator" text, "length" text, "maximum_diameter" text, "from_to" text, "licence_number" text ); Question: What is the maximum diame...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "onshore_pipelines" ( "name_year_commissioned" text, "owner_operator" text, "length" text, "maximum_diameter" text, "from_to" text, "licence_number" text ); Question: Who is the owner operator...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "onshore_pipelines" ( "name_year_commissioned" text, "owner_operator" text, "length" text, "maximum_diameter" text, "from_to" text, "licence_number" text ); Question: What is the license numbe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "onshore_pipelines" ( "name_year_commissioned" text, "owner_operator" text, "length" text, "maximum_diameter" text, "from_to" text, "licence_number" text ); Question: What is the name where th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1978" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: Which venue has 16 against? <|assistant|> SELECT "venue" FROM "1978" WHERE "against"=16;<|en...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1978" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is the against for the opposing team of Wales with the status of Five Nations? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "one_day_internationals" ( "rank" real, "player" text, "runs" real, "average" real, "career" text ); Question: Can you tell me the average Average that has the Rank larger than 4, and the Player...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "winner" text, "runner_up" text, "venue" text, "location" text ); Question: What is the venue where john zibnack was the runner-up? <|assistant|> SELECT "venue" FROM "wi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "winner" text, "runner_up" text, "venue" text, "location" text ); Question: Who is the winner in des moines, iowa where p.h. finkbank was the runner-up? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "winner" text, "runner_up" text, "venue" text, "location" text ); Question: What is the location where ed c. kingsley was the runner-up in 1939? <|assistant|> SELECT "lo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "winner" text, "runner_up" text, "venue" text, "location" text ); Question: Who is the winner when mark fuller was the runner-up? <|assistant|> SELECT "winner" FROM "win...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "winner" text, "runner_up" text, "venue" text, "location" text ); Question: What is the venue in 2002? <|assistant|> SELECT "venue" FROM "winners" WHERE "year"='2002';<|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "winner" text, "runner_up" text, "venue" text, "location" text ); Question: Who is the runner-up in 1901? <|assistant|> SELECT "runner_up" FROM "winners" WHERE "year"='1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "short_vowels" ( "short_vowels" text, "17th_c" text, "american" text, "british" text, "australian" text ); Question: What Australian sound is equivalent to e /ɛ/? <|assistant|> SELECT "australia...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the score of the game when they played at new york islanders? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "spelling" ( "a_dyck" text, "h_rempel" text, "r_epp" text, "j_thiessen" text, "j_j_neufeld" text, "ed_zacharias" text, "word_meaning" text ); Question: Which of the R. Epp, has J Thiessen of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "spelling" ( "a_dyck" text, "h_rempel" text, "r_epp" text, "j_thiessen" text, "j_j_neufeld" text, "ed_zacharias" text, "word_meaning" text ); Question: Which of the R. Epp, has Ed Zacharias ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "spelling" ( "a_dyck" text, "h_rempel" text, "r_epp" text, "j_thiessen" text, "j_j_neufeld" text, "ed_zacharias" text, "word_meaning" text ); Question: Which of the A. Dyck has J. Thiessen o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "spelling" ( "a_dyck" text, "h_rempel" text, "r_epp" text, "j_thiessen" text, "j_j_neufeld" text, "ed_zacharias" text, "word_meaning" text ); Question: Which of the H. Rempel has J. J. Neufe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2003" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is the sum of Against, when Status is "Six Nations", and when Date is "30/03/2003"? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2003" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is Opposing Teams, when Against is less than 6? <|assistant|> SELECT "opposing_teams" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2003" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is Date, when Against is "22"? <|assistant|> SELECT "date" FROM "2003" WHERE "against"=...
<|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" real ); Question: What shows for money (£) when South Africa is the country? <|assistant|> SEL...
<|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" real ); Question: What is the To par when Lanny Wadkins is the player? <|assistant|> SELECT "t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_9_6_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What was the score of the marco island tournament match when Kathle...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_9_6_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What was the tournament that was on july 6, 1987? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1962_pro_draftees" ( "player" text, "draft" text, "round" real, "pick" real, "position" text, "nfl_club" text ); Question: What is pick 246's position? <|assistant|> SELECT "position" FROM "1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1962_pro_draftees" ( "player" text, "draft" text, "round" real, "pick" real, "position" text, "nfl_club" text ); Question: Which Pick has a Player of chuck bryant, and an NFL Club of san dieg...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1962_pro_draftees" ( "player" text, "draft" text, "round" real, "pick" real, "position" text, "nfl_club" text ); Question: What is the position of the pittsburgh steelers? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1962_pro_draftees" ( "player" text, "draft" text, "round" real, "pick" real, "position" text, "nfl_club" text ); Question: Which NFL Club has a Player of sam tidmore, and a Pick of 81? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_history" ( "round" text, "club" text, "home" text, "away" text, "aggregate" text ); Question: Which club had round of group stage round 1 and 5? <|assistant|> SELECT "club" FROM "europ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_history" ( "round" text, "club" text, "home" text, "away" text, "aggregate" text ); Question: What is the aggregate for the first round for K.S.V. Waregem? <|assistant|> SELECT "aggreg...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_history" ( "round" text, "club" text, "home" text, "away" text, "aggregate" text ); Question: What is the away where the round is the second round? <|assistant|> SELECT "away" FROM "eu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16_matches" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: Which Team 1 has a 2nd leg of 1-3? <|assistant|> SELECT "team_1" FROM "round_16_matches...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16_matches" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is the Agg for 1st Leg 1-2 and 2nd leg of Withdrew? <|assistant|> SELECT "agg" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16_matches" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is the 2nd leg if the 1st leg is 3-1 and the Team 2 is union sportive de la médina...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16_matches" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is Team 2 if the 1st Leg is 3-1 and the 2nd Leg is 4-1? <|assistant|> SELECT "team...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serial_details_by_episode" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: What was the broadcaste date for the episode with a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serial_details_by_episode" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: Which Episode had 9.1 million viewers? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_history" ( "year" real, "pick" text, "player" text, "position" text, "country" text, "previous_team_league" text ); Question: What is Country, when Previous Team (League) is "King...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_history" ( "year" real, "pick" text, "player" text, "position" text, "country" text, "previous_team_league" text ); Question: What is Player, when Pick is "3", when Position is "D...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_history" ( "year" real, "pick" text, "player" text, "position" text, "country" text, "previous_team_league" text ); Question: What is Position, when Year is less than 2000, and wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_history" ( "year" real, "pick" text, "player" text, "position" text, "country" text, "previous_team_league" text ); Question: What is Player, when Previous Team (League) is "Medic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_history" ( "year" real, "pick" text, "player" text, "position" text, "country" text, "previous_team_league" text ); Question: What is Country, when Year is "1994"? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serial_details_by_episode" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: What episode has 7.8 million viewers? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serial_details_by_episode" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: What episode has a run time of 25:12? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serial_details_by_episode" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: What is the broadcast date with 7.0 million viewers?...
<|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" text, "total" real, "to_par" real ); Question: What is the average total for Dave Stockton? <|assistant|> SELECT AVG("total") FROM ...
<|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" text, "total" real, "to_par" real ); Question: What is the sum of the to par for the United States in the winning year of 1967, and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" real ); Question: What is the score for the game in which Arsenal was the away team? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" real ); Question: What is the score for the tie number 15? <|assistant|> SELECT "score" FROM...