text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_goalscorers" ( "rank" real, "player" text, "club_s" text, "year_s" text, "u_17_goals" real ); Question: What is the highest Rank, when U-17 Goals is "7", and when Player is "Cesc Fàbregas"?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_goalscorers" ( "rank" real, "player" text, "club_s" text, "year_s" text, "u_17_goals" real ); Question: What is the highest Rank, when U-17 Goals is "9"? <|assistant|> SELECT MAX("rank") FR...
<|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 Competition has a Result of Draw? <|assistant|> SELECT "competition" FROM "in...
<|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 Date of the Competition with a Score of 1–2? <|assistant|> SELECT "dat...
<|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 New Delhi Competition has a Result of Loss? <|assistant|> SELECT "competition...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: How many rounds in the event when record is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: Who is the opponent when there is a win in r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "co_hort_teams" ( "team_a" text, "team_c" text, "team_d" text, "team_e" text, "team_f" text ); Question: Who is team E when Jason Manning is Team F? <|assistant|> SELECT "team_e" FROM "co_hort_t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "co_hort_teams" ( "team_a" text, "team_c" text, "team_d" text, "team_e" text, "team_f" text ); Question: Who is Team A when wilma hofschneider-david is team C? <|assistant|> SELECT "team_a" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "co_hort_teams" ( "team_a" text, "team_c" text, "team_d" text, "team_e" text, "team_f" text ); Question: Who is team f when Aida Gagaring is team A? <|assistant|> SELECT "team_f" FROM "co_hort_t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "co_hort_teams" ( "team_a" text, "team_c" text, "team_d" text, "team_e" text, "team_f" text ); Question: Who is Team D when Carmen Ada is team C? <|assistant|> SELECT "team_d" FROM "co_hort_team...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "co_hort_teams" ( "team_a" text, "team_c" text, "team_d" text, "team_e" text, "team_f" text ); Question: Who is team e when Aaron Solloway is team D? <|assistant|> SELECT "team_e" FROM "co_hort_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "co_hort_teams" ( "team_a" text, "team_c" text, "team_d" text, "team_e" text, "team_f" text ); Question: Who is team c when dhez javier is team e? <|assistant|> SELECT "team_c" FROM "co_hort_tea...
<|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 was the country of the player at +5? <|assistant|> SELECT "country" FRO...
<|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: Which player finished at +4? <|assistant|> SELECT "player" FROM "final_round...
<|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 was Bert Yancey's finishing score to par? <|assistant|> SELECT "to_par"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bachelorettes" ( "season" real, "premiered" text, "bachelorette" text, "profile" text, "winner" text, "runner_s_up" text, "proposal" text ); Question: Who was the bachelorette of the season...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bachelorettes" ( "season" real, "premiered" text, "bachelorette" text, "profile" text, "winner" text, "runner_s_up" text, "proposal" text ); Question: What is the earliest season with an ad...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bachelorettes" ( "season" real, "premiered" text, "bachelorette" text, "profile" text, "winner" text, "runner_s_up" text, "proposal" text ); Question: Who is the bachelorette of the season ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bachelorettes" ( "season" real, "premiered" text, "bachelorette" text, "profile" text, "winner" text, "runner_s_up" text, "proposal" text ); Question: Who is the bachelorette after season 8...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" text, "round_of_32" text, "sweet_sixteen" text, "elite_eight" text, "final_four" text, "championsh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" text, "round_of_32" text, "sweet_sixteen" text, "elite_eight" text, "final_four" text, "championsh...
<|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, "attendance" text ); Question: What was the attendance for the game in Week 3? <|assistant|> SELECT "attendance" FROM "sche...
<|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, "attendance" text ); Question: On what date was the opponent the Green Bay Packers? <|assistant|> SELECT "date" FROM "sched...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1912_1914" ( "name" text, "born_died" text, "term_start" text, "term_end" text, "political_party" text ); Question: When did Ismail Qemali Bej's term start? <|assistant|> SELECT "term_start" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1912_1914" ( "name" text, "born_died" text, "term_start" text, "term_end" text, "political_party" text ); Question: When did Fejzi Bej Alizoti's term end? <|assistant|> SELECT "term_end" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1912_1914" ( "name" text, "born_died" text, "term_start" text, "term_end" text, "political_party" text ); Question: When did the term end for the person who started their term on 28 November 19...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1912_1914" ( "name" text, "born_died" text, "term_start" text, "term_end" text, "political_party" text ); Question: When did Fejzi Bej Alizoti's term start? <|assistant|> SELECT "term_start" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "location" text, "name_format" text, "owner" text ); Question: Which Location has a Frequency of 102.5 fm? <|assistant|> SELECT "location" FROM "rad...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "location" text, "name_format" text, "owner" text ); Question: Which Call sign has a Frequency of 102.5 fm? <|assistant|> SELECT "call_sign" FROM "r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "location" text, "name_format" text, "owner" text ); Question: Which Owner has a Name / Format of 105.3 kool fm - hot adult contemporary? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "location" text, "name_format" text, "owner" text ); Question: Which Location has a Call sign of cjtw-fm? <|assistant|> SELECT "location" FROM "radi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "location" text, "name_format" text, "owner" text ); Question: Which Frequency has an Owner of rogers communications rogers radio, and a Call sign o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: What is the lowest laps that Vittorio Iannuzzo completed? <|assistant|> SELECT M...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: What is the total time that it took for the driver to finish 14 laps? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: What is the Grid of Régis Laconi's bike that is a Kawasaki zx-10r? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: What is the name of the bike that has a grid number smaller than 9 with a time o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cardinal_electors" ( "elector" text, "nationality" text, "order" text, "title" text, "elevated" text, "elevator" text ); Question: Who was the French Elector Elevated on 1288, May 16? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cardinal_electors" ( "elector" text, "nationality" text, "order" text, "title" text, "elevated" text, "elevator" text ); Question: What Elector has the Title of Titulus S. Cecilia? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cardinal_electors" ( "elector" text, "nationality" text, "order" text, "title" text, "elevated" text, "elevator" text ); Question: What is the Nationality of the Deacon of S. Maria in Via Lat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cardinal_electors" ( "elector" text, "nationality" text, "order" text, "title" text, "elevated" text, "elevator" text ); Question: What is the Title of Elector Giovanni Boccamazza? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text ); Question: What was the record for the date above 27 and an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text ); Question: Who was the opponent for a game over 31 and a da...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "volume_issue" text, "issue_date_s" text, "weeks_on_top" text, "song" text, "artist" text ); Question: What date did the song by jennifer lopez get issued? <|assistant|> SELECT "iss...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "volume_issue" text, "issue_date_s" text, "weeks_on_top" text, "song" text, "artist" text ); Question: What song came from volume:issue 68:20-24? <|assistant|> SELECT "song" FROM "s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_summer_olympics_medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total number of gold medals when there were 2 bronze medals, a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_summer_olympics_medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the average total number of medals when there were 4 bronze, more t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_1_2008_ratings" ( "episode" real, "original_airdate" text, "timeslot_approx" text, "viewers_millions" real, "nightly_rank" text ); Question: What is the lowest episode number with an ori...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "female_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "female_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "female_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "proprietary" ( "name" text, "company" text, "platform" text, "latest_stable_release" text, "price_in_usd" text ); Question: What platform is the company Surfstats Software? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "proprietary" ( "name" text, "company" text, "platform" text, "latest_stable_release" text, "price_in_usd" text ); Question: What is the USD price for Tealeaf? <|assistant|> SELECT "price_in_usd...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "proprietary" ( "name" text, "company" text, "platform" text, "latest_stable_release" text, "price_in_usd" text ); Question: What is the platform for the latest release 5.0.3? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "proprietary" ( "name" text, "company" text, "platform" text, "latest_stable_release" text, "price_in_usd" text ); Question: What is the platform for the latest release 8.4? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hockey_canada" ( "event" text, "games_played" real, "goals" real, "assists" real, "points" real ); Question: What is the lowest amount of assists for more than 5 games? <|assistant|> SELECT MIN...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hockey_canada" ( "event" text, "games_played" real, "goals" real, "assists" real, "points" real ); Question: What is the highest amount of points with less than 5 assists and less than 2 goals?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hockey_canada" ( "event" text, "games_played" real, "goals" real, "assists" real, "points" real ); Question: How many points on average are there for less than 5 games played? <|assistant|> SEL...
<|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, "attendance" real ); Question: Which opponent has w 17-0 as the result? <|assistant|> SELECT "opponent" FROM "schedule" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: Which country has the Narita International Airport? <|assistant|> SELECT "country" FROM "desti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What is the IATA when the ICAO is wipp? <|assistant|> SELECT "iata" FROM "destinations" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: Which airport's ICAO is rpvi? <|assistant|> SELECT "airport" FROM "destinations" WHERE "icao"=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: Which country's IATA is ika? <|assistant|> SELECT "country" FROM "destinations" WHERE "iata"='...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What is the ICAO for the Yangon International Airport? <|assistant|> SELECT "icao" FROM "desti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What is the ICAO when the IATA is tgg? <|assistant|> SELECT "icao" FROM "destinations" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_descentralizado_1966_present" ( "season" real, "date" text, "score" text, "winner" text, "venue" text, "competition_round" text ); Question: On what date did Universitario win the Torn...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "primary_language_s" text, "director" text, "result" text ); Question: What is Director, when...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "primary_language_s" text, "director" text, "result" text ); Question: What is Film Title Use...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "primary_language_s" text, "director" text, "result" text ); Question: What is Result, when O...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "primary_language_s" text, "director" text, "result" text ); Question: What is Primary Langua...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "primary_language_s" text, "director" text, "result" text ); Question: What is Year (Ceremony...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "primary_language_s" text, "director" text, "result" text ); Question: What is Director, when...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text ); Question: Who was the Home team that had a decider of Conklin? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); Question: Game 71 was played against what team? <|assistant|> SELECT "opponen...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); Question: What is the maximum game that was played against the New York Knick...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); Question: What was the number of game that was played on March 19? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_summary" ( "rank" real, "team" text, "played" real, "wins" real, "losses" real, "points" real ); Question: What is the average rank for more than 12 points? <|assistant|> SELECT AV...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_summary" ( "rank" real, "team" text, "played" real, "wins" real, "losses" real, "points" real ); Question: What is the rank for less than 6 plays? <|assistant|> SELECT SUM("rank") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text ); Question: For the draft pick from round 3 out of Mercer College what is the nationality? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text ); Question: Who was the draft pick that went to college at Oral Roberts? <|assistant|> SELECT "playe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: What is the smallest point total when the grid is larger than 5 and the time/reti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: When Nelson Philippe drove with a grid larger than 16, what was the timre/retired...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: What was the time of the race that was on a grid smaller than 9 with jere...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the lowest grid number that a race took place doing more than 21 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the total number of grids where there were races that had a time ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "final" text ); Question: Which rank has final with 5:18.85? <|assistant|> SELECT "rank" FROM "results" WHERE "f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "final" text ); Question: Which final has rank of 10? <|assistant|> SELECT "final" FROM "results" WHERE "rank"='...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "final" text ); Question: Which final has a run of 1:19.49? <|assistant|> SELECT "final" FROM "results" WHERE "r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "final" text ); Question: Which run 2 with final of 5:24.47? <|assistant|> SELECT "run_2" FROM "results" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "final" text ); Question: Which team has run 1 of 1:17.44? <|assistant|> SELECT "team" FROM "results" WHERE "run...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "final" text ); Question: Which team has run 3 of 1:20.77? <|assistant|> SELECT "team" FROM "results" WHERE "run...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: Who was the home team when Manchester City was the away team? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What was the score when the home team was Stockport County? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the Tie Number when Barnsley was the away team? <|assistant|> SELECT "tie...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "october" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the score of the game that took place on october 22, 1976? <|assistant|> SELECT "score" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "october" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the score of the game where the record was 2-2? <|assistant|> SELECT "score" FROM "october...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "october" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Who was the home team in the game with a record of 2-4? <|assistant|> SELECT "home" FROM "october" ...