text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: Where was the friendly competition that Andriy Yarmolenko won on 28 may 2012? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the result of the game at kyiv, ukraine? <|assistant|> SELECT "result" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_1_17_february_2008" ( "couple" text, "style" text, "music" text, "choreographer" text, "results" text ); Question: What is the Style of the dance by Choreographer Luda and Oliver? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_1_17_february_2008" ( "couple" text, "style" text, "music" text, "choreographer" text, "results" text ); Question: What is the Result of the dance Choreographed by Kelly Aykers? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_1_17_february_2008" ( "couple" text, "style" text, "music" text, "choreographer" text, "results" text ); Question: What is the Style of the dance Choreographed by Nacho Pop with result of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table_by_country" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the rank with a higher than 2 total, 21 gold and more than 1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table_by_country" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many golds does Germany have with more than 1 silver? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "draft" real, "round" real, "pick" real, "player" text, "nationality" text ); Question: What is the total number of rounds of the player with a pick of 20? <|assistant|> SELECT C...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "draft" real, "round" real, "pick" real, "player" text, "nationality" text ); Question: Who is the player from the 1971 draft with a pick greater than 7? <|assistant|> SELECT "pl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "number_of_participants" ( "season" text, "premier" real, "first" real, "second" real, "total" real ); Question: What is the total number of Premier, when Second is "55"? <|assistant|> SELECT CO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "number_of_participants" ( "season" text, "premier" real, "first" real, "second" real, "total" real ); Question: What is the total number of Second, when First is greater than 18, when Season is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "number_of_participants" ( "season" text, "premier" real, "first" real, "second" real, "total" real ); Question: What is the lowest Total, when Second is "55"? <|assistant|> SELECT MIN("total") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "number_of_participants" ( "season" text, "premier" real, "first" real, "second" real, "total" real ); Question: What is the highest Total, when Season is "1996-97", and when Second is less than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "number_of_participants" ( "season" text, "premier" real, "first" real, "second" real, "total" real ); Question: What is the sum of Second, when Total is less than 70, when Premier is less than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "club_statistics" ( "name" text, "season" text, "games" text, "goals" text, "assists" text, "points" text ); Question: In what season were there 27 goals and 58 points? <|assistant|> SELECT "s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "club_statistics" ( "name" text, "season" text, "games" text, "goals" text, "assists" text, "points" text ); Question: What are the points in the season with 47 games and 28 goals? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "club_statistics" ( "name" text, "season" text, "games" text, "goals" text, "assists" text, "points" text ); Question: How many goals were there in game 47? <|assistant|> SELECT "goals" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "middleweight_77_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real ); Question: How much Snatch has a Total (kg) smaller than 257? <|assistant|> SELECT SUM(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "middleweight_77_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real ); Question: Which Snatch has a Clean & Jerk of 180, and a Bodyweight smaller than 69.83?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "terror_and_other_attacks_1968_1987" ( "military_deaths" real, "civilian_deaths_including_foreigners" real, "total_deaths" real, "military_and_or_civilian_wounded" text, "total_casualties" text )...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "terror_and_other_attacks_1968_1987" ( "military_deaths" real, "civilian_deaths_including_foreigners" real, "total_deaths" real, "military_and_or_civilian_wounded" text, "total_casualties" text )...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "terror_and_other_attacks_1968_1987" ( "military_deaths" real, "civilian_deaths_including_foreigners" real, "total_deaths" real, "military_and_or_civilian_wounded" text, "total_casualties" text )...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text ); Question: which Total has a Score points of 11? <|assistant|> SELECT "total" FROM "qualif...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text ); Question: Which Total has an olympic bronze medalist? <|assistant|> SELECT "total" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text ); Question: Which Shooter has Score points of olympic silver medalist? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text ); Question: Name the Rank points which have an Event of wc beijing, and Score points of 13,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: What is the Film title used in nomination of Cilvēka Bērns...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: What is the Original Title of the 1992 (65th) Film <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: What is the Director of Gulf Stream Under the Iceberg? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: What is the Original Title of the movie directed by Aigars...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "vowel_alone" ( "letter" text, "american" text, "british" text, "australian" text, "examples" text ); Question: What is the British letter with o /oʊ/? <|assistant|> SELECT "british" FROM "vowel...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "vowel_alone" ( "letter" text, "american" text, "british" text, "australian" text, "examples" text ); Question: Which letter has the British aɪ? <|assistant|> SELECT "letter" FROM "vowel_alone" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "vowel_alone" ( "letter" text, "american" text, "british" text, "australian" text, "examples" text ); Question: What does American have if Australia has əʉ? <|assistant|> SELECT "american" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "vowel_alone" ( "letter" text, "american" text, "british" text, "australian" text, "examples" text ); Question: What is the British letter if American is ə? <|assistant|> SELECT "british" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "vowel_alone" ( "letter" text, "american" text, "british" text, "australian" text, "examples" text ); Question: What is the Australian letter with a British of ɪ and a letter of æ /i/?? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" real ); Question: Which Score has an Attendance larger than 16,851, and an Away team of sheff...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" real ); Question: What is sheffield united's away team? <|assistant|> SELECT "away_team" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" real ); Question: How many people attended the Away team of middlesbrough? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" real ); Question: Which Score has an Away team of middlesbrough? <|assistant|> SELECT "score"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); Question: WHAT IS THE YEARS AS TALLEST WITH 01.0 10 light stre...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); Question: WHAT IS THE FLOOR NUMBERS WITH 01.0 10 light street?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); Question: WHAT IS THE YEAR'S TALLEST VALUE WITH FLOORS LESS TH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); Question: WHAT IS THE NAME WITH 01.0 10 light street? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kazakhstan" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text ); Question: What is the Name of the Player with a Height of m (ft 1in)? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kazakhstan" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text ); Question: What is Tatyana Gubina's Weight? <|assistant|> SELECT "weight" FROM "kazakh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kazakhstan" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text ); Question: What is Alyona Klimenko's Pos.? <|assistant|> SELECT "pos" FROM "kazakhstan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "rank" real, "champion" text, "runner_up" text, "third_place" text, "fourth_place" text, "total" real ); Question: How many third places has a total greater than 2 and a rank less than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_house_district_5" ( "county" text, "precincts" text, "c_abate" text, "r_bacon" text, "d_shulman" text ); Question: What is the number for R Bacon in Passaic County? <|assistant|> SELECT "r_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_house_district_5" ( "county" text, "precincts" text, "c_abate" text, "r_bacon" text, "d_shulman" text ); Question: What is the number for D. Shulman if C. Abate has 728 (43%) <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_house_district_5" ( "county" text, "precincts" text, "c_abate" text, "r_bacon" text, "d_shulman" text ); Question: Which county has 728 (43%) listed under C. Abate? <|assistant|> SELECT "co...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_house_district_5" ( "county" text, "precincts" text, "c_abate" text, "r_bacon" text, "d_shulman" text ); Question: What are the numbers for D. Shulman in Warren County? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_house_district_5" ( "county" text, "precincts" text, "c_abate" text, "r_bacon" text, "d_shulman" text ); Question: Which County has Precincts of 90/90? <|assistant|> SELECT "county" FROM "u...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_house_district_5" ( "county" text, "precincts" text, "c_abate" text, "r_bacon" text, "d_shulman" text ); Question: Which county has 438 (4%) listed under R. Bacon? <|assistant|> SELECT "cou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "albums" ( "artist" text, "album" text, "country" text, "year" real, "catalog_num" text, "format" text ); Question: What is the format of the album Pacific Ocean Blue in 1991? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "albums" ( "artist" text, "album" text, "country" text, "year" real, "catalog_num" text, "format" text ); Question: Who is the artist with catalog number ZK 34354? <|assistant|> SELECT "artist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text ); Question: How tall is player James Stanton? <|assistant|> SELECT "height" FROM "austra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text ); Question: Which player is on the roster for the Sydney University Lions? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text ); Question: What is the height of player James Stanton? <|assistant|> SELECT "height" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "draft" real, "round" real, "pick" real, "player" text, "nationality" text ); Question: What is the highest draft after round 2, is from the United States and has picked less tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "draft" real, "round" real, "pick" real, "player" text, "nationality" text ); Question: What is the average draft with a pick larger than 42, and player Grant Eakin after round 8...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What venue was the 2000 AFC Asian Cup qualification held at? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text ); Question: What were the lowest goals when the matches were smaller than 29? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text ); Question: What is the lowest match for goals larger than 36? <|assistant|> SELECT MIN("matches...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hydro_power_stations_under_construction" ( "s_no" real, "power_plant" text, "state" text, "total_capacity_mw" real, "completion_schedule" text ); Question: For the 2013 completion schedule, wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hydro_power_stations_under_construction" ( "s_no" real, "power_plant" text, "state" text, "total_capacity_mw" real, "completion_schedule" text ); Question: What is the completion schedule for h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hydro_power_stations_under_construction" ( "s_no" real, "power_plant" text, "state" text, "total_capacity_mw" real, "completion_schedule" text ); Question: When the completion schedule is 2016 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the 2009 value of the shanghai masters, which was A in ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the 2011 value of the paris masters, which had A in 200...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the 2012 of the hamburg masters? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the 2008 value of the hamburg masters? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the 2009 value with lq in 2012, 2r in 2011, and lq in 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the 2010 value of the monte carlo masters, which had A ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "electric_locomotives" ( "class" text, "drg_number_s" text, "quantity" real, "year_s_of_manufacture" text, "type" text ); Question: What is the quantity when the DRG was E 62 01–E 62 05? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runners_up_6" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponent_in_the_final" text, "score" text ); Question: Which Opponent in the final has a Partnering of gray...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runners_up_6" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponent_in_the_final" text, "score" text ); Question: which Score has a Partnering of dmitry tursunov? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runners_up_6" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponent_in_the_final" text, "score" text ); Question: Which Score has an Opponent in the final of chris ha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runners_up_6" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponent_in_the_final" text, "score" text ); Question: Which Partnering has a Score of 7–6 7 , 6–1? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runners_up_6" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponent_in_the_final" text, "score" text ); Question: Name the Surface that of Tournament of valencia , sp...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runners_up_6" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponent_in_the_final" text, "score" text ); Question: Name the Opponent in the final on july 4, 2005? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "premier_league" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real, "league_position" text ); Question: What was the Result F–A on 21 February 2009, when the le...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What club does John Westin play for? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: In what round was a left wing drafted? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What player was drafted in Round 5? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: Where did the player who won in 1991 finish? <|assistant|> SELECT "fi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: Which player is from scotland? <|assistant|> SELECT "player" FROM "ma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semi_final_3_7_february_2009" ( "draw" real, "artist" text, "song" text, "lyrics_l_music_m" text, "results" text ); Question: What are the Lyrics (l) / Music (m) when the draw was 5? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semi_final_3_7_february_2009" ( "draw" real, "artist" text, "song" text, "lyrics_l_music_m" text, "results" text ); Question: What is the Lyrics (l) / Music (m) when the draw was more than 3, a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semi_final_3_7_february_2009" ( "draw" real, "artist" text, "song" text, "lyrics_l_music_m" text, "results" text ); Question: What is the Lyrics (l) / Music (m) when the results show out, and t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What score has friendly as the competition? <|assistant|> SELECT "score" FROM "int...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: Playing against Chelmsford City on 15 November 1986, who was the home team? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: When Lincoln City was the away team what is the tie number? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: When was the game played that had Rochdale as the away team? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: Scunthorpe United as the home team has what tie number? <|assistant|> SELECT "tie...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: The game played on 6 December 1986 had what score? <|assistant|> SELECT "score" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "express_train_locomotives" ( "class" text, "number_range" text, "quantity" text, "year_s_built" text, "type" text ); Question: WHAT IS THE TYPE WITH 124? <|assistant|> SELECT "type" FROM "expre...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_32" ( "date" text, "score" text, "set_1" text, "set_2" text, "total" text ); Question: What is Score, when Total is "28:42"? <|assistant|> SELECT "score" FROM "round_of_32" WHERE "tota...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_32" ( "date" text, "score" text, "set_1" text, "set_2" text, "total" text ); Question: What is Date, when Set 1 is "20:22"? <|assistant|> SELECT "date" FROM "round_of_32" WHERE "set_1"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_32" ( "date" text, "score" text, "set_1" text, "set_2" text, "total" text ); Question: What is Set 1, when Set 2 is "21:18"? <|assistant|> SELECT "set_1" FROM "round_of_32" WHERE "set_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_32" ( "date" text, "score" text, "set_1" text, "set_2" text, "total" text ); Question: What is Set 2, when Total is "52:44"? <|assistant|> SELECT "set_2" FROM "round_of_32" WHERE "tota...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the away team with a 4 tie no.? <|assistant|> SELECT "away_team" FROM "fi...