text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_i" ( "position" real, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); Question: What is t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_i" ( "position" real, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); Question: What is t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_i" ( "position" real, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); Question: What is t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_i" ( "position" real, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); Question: What is t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "app_l_c_e" text, "goals_l_c_e" text, "ends" real, "transfer_fee" text ); Question: What are the goals for Pelletieri in ARG? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "app_l_c_e" text, "goals_l_c_e" text, "ends" real, "transfer_fee" text ); Question: What are the fewest ends with an App(L/C/E) o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "app_l_c_e" text, "goals_l_c_e" text, "ends" real, "transfer_fee" text ); Question: Who has a nationality of GRE and an App(L/C/E...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "app_l_c_e" text, "goals_l_c_e" text, "ends" real, "transfer_fee" text ); Question: What are the gaols(L/C/E) with an App(L/C/E) ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "best_teenage_young_adult" text, "reader_s_vote" text, "best_non_fiction" text, "lifetime_achievement" text ); Question: How many times was the reader's vote na...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "best_teenage_young_adult" text, "reader_s_vote" text, "best_non_fiction" text, "lifetime_achievement" text ); Question: who won the lifetime achievement in the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "best_teenage_young_adult" text, "reader_s_vote" text, "best_non_fiction" text, "lifetime_achievement" text ); Question: who won the lifetime achievement when t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "best_teenage_young_adult" text, "reader_s_vote" text, "best_non_fiction" text, "lifetime_achievement" text ); Question: what is the reader's vote for 2011? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying" ( "driver" text, "constructor" text, "q1_order" real, "q1_time" text, "q1_pos" real, "q1_q2_time" text ); Question: Constructor with total time of 2:45.416 <|assistant|> SELECT "c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying" ( "driver" text, "constructor" text, "q1_order" real, "q1_time" text, "q1_pos" real, "q1_q2_time" text ); Question: Driver at larger than 10 with a Q1 of 18. <|assistant|> SELECT ...
<|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" text, "record" text ); Question: Who was the opponent when the record was 55-14? <|assistant|> SELECT "opponent...
<|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" text, "record" text ); Question: What was the game number when record is 59-15? <|assistant|> SELECT MIN("game"...
<|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" text, "record" text ); Question: What is the date that the record was 51-14? <|assistant|> SELECT "date" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What is the sum of Pick #, when College is Laurier? <|assistant|> SELECT SUM("pick_nu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What is CFL Team, when Pick # is greater than 34, and when College is Boise State? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What is the lowest Pick #, when Position is REC, and when CFL Team is Hamilton Tiger-...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What is Player, when Position is DB, and when College is Saint Mary's? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What is Position, when Pick # is less than 40, and when College is Western? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_e" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); Question: Which Date has a Time of 12:00? <|assistant|> SELECT "date" FROM "pool_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_e" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); Question: Set 1 of 25–20, what was Set 2? <|assistant|> SELECT "set_2" FROM "pool...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_state_leaders_in_the_20th_centur" ( "type" text, "name" text, "title" text, "royal_house" text, "from" text ); Question: Whose rule began in 1906 BC? <|assistant|> SELECT "name" FROM "l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_state_leaders_in_the_20th_centur" ( "type" text, "name" text, "title" text, "royal_house" text, "from" text ); Question: What is the title of the one who ruled from 2007 BC? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_state_leaders_in_the_20th_centur" ( "type" text, "name" text, "title" text, "royal_house" text, "from" text ); Question: What is the name of the ruler whose rule began in 1924 BC? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_state_leaders_in_the_20th_centur" ( "type" text, "name" text, "title" text, "royal_house" text, "from" text ); Question: What royal house did Shaokang belong to? <|assistant|> SELECT "r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_buildings" ( "rank" real, "name" text, "height_ft_m" text, "floors" real, "year" real ); Question: What is the highest rank of a building erected in 1976 with fewer than 21 floors? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text ); Question: What team was the opponent when February shows more than 2, with a game number le...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text ); Question: What is the game number when the Toronto Maple Leafs were the opponent, and the F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text ); Question: What is the number of the game when the opponent was the New York Islanders, and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text ); Question: What is the lowest game number when the record was 26-24-9? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What rank has less than 16 gold, more than 2 bronze and silver, and a total of 14? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What's the silver for rank 1 with less than 2 bronze? <|assistant|> SELECT MIN("silver") FROM "m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What's the lowest total when there's less than 16 bronze and more than 6 silver? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What's the lowest gold with a total over 15 and less than 16 silver? <|assistant|> SELECT MIN("g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Gold has a Rank of 7, a Nation of italy, and a Silver smaller than 0? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Gold has a Total larger than 3, a Rank of total, and a Silver larger than...
<|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, "position" text, "nationality" text, "club_team" text ); Question: Which Club team has a Pick larger than 139? <|assistant|> SELECT "c...
<|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, "position" text, "nationality" text, "club_team" text ); Question: Which Nationality has a Pick larger than 109, and a Round smaller t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "r" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: Which school was Lawrence Roberts from ? <|assistant|> SELECT "school_c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "r" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: Which school was Chris Robinson from? <|assistant|> SELECT "school_club...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "r" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: What was the position that Chris Robinson played? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "r" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: In which years did Zach Randolph play for the Grizzlies? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "r" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: Which player played for Western Kentucky? <|assistant|> SELECT "player"...
<|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 on January 14 when the Chicago Black Hawks were home against the New York...
<|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: Who was the home team on February 18 that had a visitor of the Chicago Black Hawks? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_4" ( "team" text, "tries_for" text, "tries_against" text, "try_diff" text, "points_for" text, "points_against" text, "points_diff" text ); Question: What is points diff when points aga...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_4" ( "team" text, "tries_for" text, "tries_against" text, "try_diff" text, "points_for" text, "points_against" text, "points_diff" text ); Question: Which team has 123 points agaibst t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_4" ( "team" text, "tries_for" text, "tries_against" text, "try_diff" text, "points_for" text, "points_against" text, "points_diff" text ); Question: What is the points against when try...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_4" ( "team" text, "tries_for" text, "tries_against" text, "try_diff" text, "points_for" text, "points_against" text, "points_diff" text ); Question: What is points when try diff is +23...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_4" ( "team" text, "tries_for" text, "tries_against" text, "try_diff" text, "points_for" text, "points_against" text, "points_diff" text ); Question: What is points sgsinst when points ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text ); Question: How many laps led...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text ); Question: Name the Time/Ret...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text ); Question: What car number h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text ); Question: What team does Da...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text ); Question: How many points w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "october" real, "opponent" text, "score" text, "record" text ); Question: What is the average game number that was on october 19? <|assistant|> SELECT AVG("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "october" real, "opponent" text, "score" text, "record" text ); Question: What is the sum of October, when Opponent is "Pittsburgh Penguins"? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "october" real, "opponent" text, "score" text, "record" text ); Question: What is the sum of Game, when Record is "2-1-1", and when October is less than 21?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "october" real, "opponent" text, "score" text, "record" text ); Question: What is Opponent, when October is less than 31, and when Game is greater than 7? <...
<|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 for the home team Orient? <|assistant|> SELECT "tie_no" FR...
<|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 score for the away team Chelsea? <|assistant|> SELECT "score" FROM "t...
<|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 away team for the tie no. 29? <|assistant|> SELECT "away_team" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "demography" ( "religion" text, "suriname" text, "paramaribo" text, "wanica" text, "nickerie" text, "coronie" text, "saramacca" text, "commewijne" text, "marowijne" text, "para" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "demography" ( "religion" text, "suriname" text, "paramaribo" text, "wanica" text, "nickerie" text, "coronie" text, "saramacca" text, "commewijne" text, "marowijne" text, "para" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "demography" ( "religion" text, "suriname" text, "paramaribo" text, "wanica" text, "nickerie" text, "coronie" text, "saramacca" text, "commewijne" text, "marowijne" text, "para" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "demography" ( "religion" text, "suriname" text, "paramaribo" text, "wanica" text, "nickerie" text, "coronie" text, "saramacca" text, "commewijne" text, "marowijne" text, "para" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "demography" ( "religion" text, "suriname" text, "paramaribo" text, "wanica" text, "nickerie" text, "coronie" text, "saramacca" text, "commewijne" text, "marowijne" text, "para" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What's the rank average when the gold medals are less than 0? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total rank of Hungary (HUN) when the bronze medals were less than 0...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the sum of the total number of medals when silver is less than 0? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1939_1943" ( "name" text, "born_died" text, "term_start" text, "term_end" text, "political_party" text ); Question: What is Born-Died, when Term Start is 4 December 1941? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1939_1943" ( "name" text, "born_died" text, "term_start" text, "term_end" text, "political_party" text ); Question: What is Term Start, when Name is Prime Ministers 1939 - 1943? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1939_1943" ( "name" text, "born_died" text, "term_start" text, "term_end" text, "political_party" text ); Question: What is Born-Died, when Name is Maliq Bushati? <|assistant|> SELECT "born_die...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1939_1943" ( "name" text, "born_died" text, "term_start" text, "term_end" text, "political_party" text ); Question: What is Term End, when Political Party is Albanian Fascist Party, and when Te...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1939_1943" ( "name" text, "born_died" text, "term_start" text, "term_end" text, "political_party" text ); Question: What is Term Start, when Born-Died is Prime Ministers 1939 - 1943? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1939_1943" ( "name" text, "born_died" text, "term_start" text, "term_end" text, "political_party" text ); Question: What is Born-Died, when Term End is 19 January 1943? <|assistant|> SELECT "bo...
<|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 is the Score of the game with a Record of 5–4–3? <|assistant|> SELECT "score" FROM "reg...
<|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 is the Score on January 23? <|assistant|> SELECT "score" FROM "regular_season" WHERE "d...
<|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 is the Visitor of the Montreal Canadiens Home game with a Record of 6–4–4? <|assistant|...
<|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 is the Date of the game with a Record of 12–7–6? <|assistant|> SELECT "date" FROM "regu...
<|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 is the Record of the Montreal Canadiens Home game on March 23? <|assistant|> SELECT "re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "dates" text, "champion" text, "country" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "tournament_location" text, "purse" text, "winner_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "dates" text, "champion" text, "country" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "tournament_location" text, "purse" text, "winner_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ranking" ( "country" text, "population_july_2005_est" real, "land_area_km" real, "pct_of_arable_land_2005_est" text, "arable_land_km" real, "population_density_pop_per_km" real ); Question: W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ranking" ( "country" text, "population_july_2005_est" real, "land_area_km" real, "pct_of_arable_land_2005_est" text, "arable_land_km" real, "population_density_pop_per_km" real ); Question: W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ranking" ( "country" text, "population_july_2005_est" real, "land_area_km" real, "pct_of_arable_land_2005_est" text, "arable_land_km" real, "population_density_pop_per_km" real ); Question: W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ranking" ( "country" text, "population_july_2005_est" real, "land_area_km" real, "pct_of_arable_land_2005_est" text, "arable_land_km" real, "population_density_pop_per_km" real ); Question: W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the sum of Gold, when Silver is greater than 6, when Rank is 1, and when Bronze is less ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the lowest Silver, when Bronze is 1, and when Total is less than 3? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the average Gold, when Silver is less than 107, when Bronze is greater than 42, and when...
<|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: Which manufacturer has more than 28 laps and less than 9 grids with jerem...