text
stringlengths
310
1.28k
<|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: If there are more than 0 Silver medals, less than 5 gold medals, and no bronze ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "6401_6500" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real ); Question: What's the total numbe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "6401_6500" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real ); Question: Which object has an Ap...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_sequenced_bacterial_genomes" ( "species" text, "strain" text, "type" text, "base_pairs" text, "genes" text ); Question: Which species of bacteria has 5,566 genes? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_sequenced_bacterial_genomes" ( "species" text, "strain" text, "type" text, "base_pairs" text, "genes" text ); Question: What is the Strain name of Species Thiomicrospira crunogena? <|as...
<|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, "time" text, "location" text ); Question: Name the location of record 5...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_standings" ( "rank" real, "team" text, "loss" real, "sets_won" real, "sets_lost" real, "percentage" text ); Question: What's the rank for a team that has a percentage of 56% and a los...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wide_receivers" ( "player" text, "rec" real, "yards" real, "avg" real, "td_s" real, "long" real ); Question: Name the average avg for TD's less than 3 for devin wyman and long more than 3 <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wide_receivers" ( "player" text, "rec" real, "yards" real, "avg" real, "td_s" real, "long" real ); Question: Name the lowest yards for 34 long and avg less than 12.6 <|assistant|> SELECT MIN(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1983_nascar_winston_cup_series_drivers" ( "team" text, "make" text, "driver" text, "sponsor" text, "car_owner" text ); Question: What team is sponsored by chameleon sunglasses? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1983_nascar_winston_cup_series_drivers" ( "team" text, "make" text, "driver" text, "sponsor" text, "car_owner" text ); Question: What team does bobby hillin jr. (r) drive a buick regal for? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1983_nascar_winston_cup_series_drivers" ( "team" text, "make" text, "driver" text, "sponsor" text, "car_owner" text ); Question: What team is sponsored by w.h. bolin? <|assistant|> SELECT "team...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1983_nascar_winston_cup_series_drivers" ( "team" text, "make" text, "driver" text, "sponsor" text, "car_owner" text ); Question: Who drives for the sponsor w.h. bolin? <|assistant|> SELECT "dri...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1983_nascar_winston_cup_series_drivers" ( "team" text, "make" text, "driver" text, "sponsor" text, "car_owner" text ); Question: Who sponsors driver neil bonnett? <|assistant|> SELECT "sponsor"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "analogue_terrestrial_television" ( "channel" text, "description" text, "financed_by" text, "owned_by" text, "launched" real ); Question: What channel has a description of the public broadcaster...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "analogue_terrestrial_television" ( "channel" text, "description" text, "financed_by" text, "owned_by" text, "launched" real ); Question: What was the channel that was financed by commercials? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: Which entry has the highest laps of those with constructor Minardi - Fondmetal, driver Marc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the sum of grid values of driver Michael Schumacher with lap counts larger than 66?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: Which driver has 62 laps? <|assistant|> SELECT "driver" FROM "race" WHERE "laps"=62;<|endof...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the highest grid value with constructor Mclaren - Mercedes, driver David Coulthard,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the highest number of laps for grid 17? <|assistant|> SELECT MAX("laps") FROM "race...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "championship_drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text ); Question: None of the rounds has Rog...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the time/retired for alain prost? <|assistant|> SELECT "time_retired" FROM "race" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the time/retired for grid 9? <|assistant|> SELECT "time_retired" FROM "race" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: Who had to retire due to suspension? <|assistant|> SELECT "driver" FROM "race" WHERE "time_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sports" ( "sport" text, "year" real, "class" text, "coach" text, "record" text ); Question: What class is volleyball in 2000? <|assistant|> SELECT "class" FROM "sports" WHERE "sport"='volleybal...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sports" ( "sport" text, "year" real, "class" text, "coach" text, "record" text ); Question: What is the team's record in 3a volleyball? <|assistant|> SELECT "record" FROM "sports" WHERE "class"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the away team at Melbourne's hom...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the away team score at Corio Ov...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: When did the away team score 12.14 (86)?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mi_g_credits" ( "date" text, "pilot" text, "weapon_systems_officer" text, "aircraft" text, "tail_code" text, "call_sign" text, "kill" text ); Question: Which Call Sign that has a Tail Code ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mi_g_credits" ( "date" text, "pilot" text, "weapon_systems_officer" text, "aircraft" text, "tail_code" text, "call_sign" text, "kill" text ); Question: Which Tail Code belongs to Weapon Sys...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mi_g_credits" ( "date" text, "pilot" text, "weapon_systems_officer" text, "aircraft" text, "tail_code" text, "call_sign" text, "kill" text ); Question: Which Aircraft has the Call Sign Paul...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mi_g_credits" ( "date" text, "pilot" text, "weapon_systems_officer" text, "aircraft" text, "tail_code" text, "call_sign" text, "kill" text ); Question: Which Call Sign that has Tail Code ed...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mi_g_credits" ( "date" text, "pilot" text, "weapon_systems_officer" text, "aircraft" text, "tail_code" text, "call_sign" text, "kill" text ); Question: Which aircraft Weapon Systems Officer...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_ladder" ( "mid_gippsland_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the lowest amount of wins of someone who has 2 losses? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_ladder" ( "mid_gippsland_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the largest amount of wins of someone who has an against sco...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "non_championship_race_results" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text ); Question: What is the name of race that has a winni...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "non_championship_race_results" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text ); Question: Who is the winning driver that has a cons...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "titles_by_country" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the high bronze total for nations ranked 12? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the away team when Footscray sco...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_13" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the winning score on May 3, 1998? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "helicopters" ( "aircraft" text, "origin" text, "role" text, "registration" text, "number" text ); Question: What is the role of the aircraft that has a registration of s5-hpg s5-hpc? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "helicopters" ( "aircraft" text, "origin" text, "role" text, "registration" text, "number" text ); Question: What is the country of origin of the aircraft with a registration s5-hpb? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "helicopters" ( "aircraft" text, "origin" text, "role" text, "registration" text, "number" text ); Question: What is the role of the aircraft that originates from the European Union? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "helicopters" ( "aircraft" text, "origin" text, "role" text, "registration" text, "number" text ); Question: What is the role of the aircraft that has a registration of s5-hpb? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text ); Question: Which Hometown has a Height of 6-10? <|assistant|> SELECT "hometo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text ); Question: What is the NBA Draft for the School Bishop O'Connell High School...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text ); Question: Which School is located in Winter Park, FL (Hometown)? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text ); Question: When the School is Bishop Luers High School, what is the Hometown...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text ); Question: What is the Hometown for Villanova College? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Who was the home team at the game when the Thrashers had a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What was the date of the game with a decision of Lehtonen ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the average grid for johnny herbert with a Time/Retired of +1 lap? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the away team at mcg? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the home team at princes park? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2101_2200" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text ); Question: Which Object type has a Constellation of orion, and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2101_2200" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text ); Question: Which Right ascension (J2000) has a Constellation o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2101_2200" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text ); Question: Which NGC number has an Object type of open cluster...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2101_2200" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text ); Question: Which Object type has an NGC number of 2171? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lieutenant_governors_of_illinois" ( "lt_governor" text, "commission_date" text, "end_date" text, "governor" text, "party" text, "term" text ); Question: What is the end date of the term for G...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "deep_space_rendezvous" ( "date_and_time_utc" text, "rocket" text, "site" text, "orbit" text, "function" text, "decay_utc" text ); Question: What site has an orbit of Leo, a decay (UTC) of sti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "deep_space_rendezvous" ( "date_and_time_utc" text, "rocket" text, "site" text, "orbit" text, "function" text, "decay_utc" text ); Question: What date and time has a sub-orbital of orbit, a fu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_5" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_up" text ); Question: what is the tournament when the winning score is 2 and 1? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_5" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_up" text ); Question: what is the margin of victory for the tournament travelers champ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_5" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_up" text ); Question: what is the margin of victory for the waste management phoenix o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_5" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_up" text ); Question: who is the runner-up when the winning score is −16 (68-70-65-65=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1987_series" ( "position" text, "game_1" text, "game_2" text, "game_3" text, "game_4" text ); Question: For which Game 4 did Michael O'Connor play wing position? <|assistant|> SELECT "game_4" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1987_series" ( "position" text, "game_1" text, "game_2" text, "game_3" text, "game_4" text ); Question: For which Game 4, did David Boyle play in Game 3? <|assistant|> SELECT "game_4" FROM "198...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1987_series" ( "position" text, "game_1" text, "game_2" text, "game_3" text, "game_4" text ); Question: Which Game 1 has a fullback? <|assistant|> SELECT "game_1" FROM "1987_series" WHERE "posi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1987_series" ( "position" text, "game_1" text, "game_2" text, "game_3" text, "game_4" text ); Question: For which Game 4 did Michael O'Connor play during Game 1? <|assistant|> SELECT "game_4" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1987_series" ( "position" text, "game_1" text, "game_2" text, "game_3" text, "game_4" text ); Question: During Game 2, which position did Andrew Farrar play? <|assistant|> SELECT "position" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1987_series" ( "position" text, "game_1" text, "game_2" text, "game_3" text, "game_4" text ); Question: During which Game 4, did Brett Kenny play Game 2? <|assistant|> SELECT "game_4" FROM "198...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "institution" text, "location" text, "founded" real, "type" text, "enrollment" real, "nickname" text, "joined" real, "left" real, "current_conference" text ); Question...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "rank" real, "name" text, "nation" text, "sp_fs" real, "points" real, "places" real ); Question: what is the places when for the soviet union with a rank more than 11? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "rank" real, "name" text, "nation" text, "sp_fs" real, "points" real, "places" real ); Question: what is the name when the nation is soviet union and the points is 185? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What constructor has less than 3 laps and grid 15? <|assistant|> SELECT "constructor" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which Home team has an Away team of colli...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_ladder" ( "mid_gippsland_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: Name the lowest against for when wins are greater than 14, draws is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_ladder" ( "mid_gippsland_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: Name the sum against for byes less than 0 <|assistant|> SELECT SUM("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_ladder" ( "mid_gippsland_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: Name the sum of draws for losses less than 2 and wins of 16 <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_career" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: How few laps were finished in 17? <|assistant|> SELECT MIN("laps") FROM "indy_5...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_career" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What is 1966's Qual rating? <|assistant|> SELECT "qual" FROM "indy_500_career" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_career" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What race has a finish time of 10? <|assistant|> SELECT "start" FROM "indy_500_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_career" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What is the lowest lap with a rank of 30? <|assistant|> SELECT MIN("laps") FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_career" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What finish time started at 32? <|assistant|> SELECT "finish" FROM "indy_500_ca...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real ); Question: Who is the lowest ranked player from the United States that has less than 3 Win...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the score of the game that had a visiting team of Edmonton? <|assistant|> SELECT "score" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the record of the game that had a home team of Colorado, and a visiting team of Winnipeg? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What team was visiting on February 15? <|assistant|> SELECT "visitor" FROM "game_log" WHERE "date"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_commerce" ( "year" real, "theme" text, "artist" text, "mintage" real, "issue_price" text ); Question: What theme had an issue price of $489.95 after 2005? <|assistant|> SELECT "theme" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_commerce" ( "year" real, "theme" text, "artist" text, "mintage" real, "issue_price" text ); Question: What year was the timber trade? <|assistant|> SELECT SUM("year") FROM "canadian_co...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_commerce" ( "year" real, "theme" text, "artist" text, "mintage" real, "issue_price" text ); Question: What year has an issue price of $697.95? <|assistant|> SELECT COUNT("year") FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyres" text, "driver" text, "rounds" text ); Question: What was the engine driven by Jean-Pie...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "season" text, "winners" text, "score" text, "runners_up" text, "venue" text ); Question: What Season had Dundee United as a Winner? <|assistant|> SELECT "season" FROM "results" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "season" text, "winners" text, "score" text, "runners_up" text, "venue" text ); Question: What is the Score of the Rangers' Runner-ups and Hibernian Winners in Hampden Park? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "season" text, "winners" text, "score" text, "runners_up" text, "venue" text ); Question: What Runners-up have a Venue in Broadwood Stadium? <|assistant|> SELECT "runners_up" FROM "r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "g_class" ( "ship" text, "pennant_number" text, "laid_down" text, "launched" text, "completed" text ); Question: When is the completed date of the destroyer with a pennant number h63? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "g_class" ( "ship" text, "pennant_number" text, "laid_down" text, "launched" text, "completed" text ); Question: When is the completed date of the destroyer with a pennant number h59? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "g_class" ( "ship" text, "pennant_number" text, "laid_down" text, "launched" text, "completed" text ); Question: What ship has a pennant number h05? <|assistant|> SELECT "ship" FROM "g_class" WH...