text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
Question: What were the notes in Toronto, Canada?
<|assistant|>
SELECT "notes" FROM "achievements... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
Question: Name the most points for class of 125cc and team of mv agusta with year more tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "titles_by_beyond_software" (
"title" text,
"genre" text,
"c_64" text,
"zx_spectrum" text,
"others" text,
"year" real,
"format" text
);
Question: Which ZX Spectrum has a Year larger than 198... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "titles_by_beyond_software" (
"title" text,
"genre" text,
"c_64" text,
"zx_spectrum" text,
"others" text,
"year" real,
"format" text
);
Question: How many years have a Title of kriegspiel?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "titles_by_beyond_software" (
"title" text,
"genre" text,
"c_64" text,
"zx_spectrum" text,
"others" text,
"year" real,
"format" text
);
Question: Which ZX Spectrum has a C=64 of c64, and a T... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "titles_by_beyond_software" (
"title" text,
"genre" text,
"c_64" text,
"zx_spectrum" text,
"others" text,
"year" real,
"format" text
);
Question: Which Title has Others of amstrad cpc, and a... |
<|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,
"venue" text,
"attendance" text,
"record" text
);
Question: What was the result when the attendance was 12,000?
<|assis... |
<|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,
"venue" text,
"attendance" text,
"record" text
);
Question: What was the attendance for weeks prior to 5 when there was... |
<|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,
"venue" text,
"attendance" text,
"record" text
);
Question: What was the attendance number for the venue of Lakeside Pa... |
<|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,
"venue" text,
"attendance" text,
"record" text
);
Question: What is the largest week number for the venue of League Par... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"bats" text,
"throws" text,
"position" text
);
Question: What is Michael's surname?
<|assistant|>
SELECT "surname" FROM "player_ro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"bats" text,
"throws" text,
"position" text
);
Question: Which First has Bats of r, and Throws of l, and a DOB of 12 october 1977?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"bats" text,
"throws" text,
"position" text
);
Question: When was Maat born?
<|assistant|>
SELECT "d_o_b" FROM "player_roster" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"bats" text,
"throws" text,
"position" text
);
Question: How many bats does Todd have?
<|assistant|>
SELECT "bats" FROM "player_ro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"bats" text,
"throws" text,
"position" text
);
Question: Which Position has a DOB of 13 may 1987?
<|assistant|>
SELECT "position" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"bats" text,
"throws" text,
"position" text
);
Question: Which Bats have Throws of r, and a DOB of 22 may 1973?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2005" (
"149" real,
"9_february" text,
"friendly" text,
"israel" text,
"croatia" text
);
Question: Which Croatia has a Friendly of world cup 2006 qualifier, and a 149 of 152?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006" (
"rank" text,
"film" text,
"director_s" text,
"producer_s" text,
"writer_s" text,
"production_company" text
);
Question: For which production company did Sam Mccarthy produce?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006" (
"rank" text,
"film" text,
"director_s" text,
"producer_s" text,
"writer_s" text,
"production_company" text
);
Question: Who was the director that worked with Dana Dorian as the writer... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006" (
"rank" text,
"film" text,
"director_s" text,
"producer_s" text,
"writer_s" text,
"production_company" text
);
Question: Which film, directed by Dana Dorian, was nominated?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
Question: What is the sum for December against the vancouver canucks earlier than game 33?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
Question: What is the sum for December when the record was 22-12-5?
<|assistant|>
SELECT SU... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
Question: When is the earliest year associated with team norton and 0 wins?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
Question: What is the year that there were 0 wins, team AJS, and under 12 points?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award_ceremony" text,
"category" text,
"nominee" text,
"result" text
);
Question: What year is associated with a drama desk award ceremony and a Category... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"name" text,
"gp_gs" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" text
);
Question: What is the average Loss for the long of more than 12 with a name of opponents with a Ga... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2001_02_season_as_a_three_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" real,
"time" text,
"jockey" text,
"winner_2nd" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2001_02_season_as_a_three_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" real,
"time" text,
"jockey" text,
"winner_2nd" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2001_02_season_as_a_three_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" real,
"time" text,
"jockey" text,
"winner_2nd" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"state_territory" text,
"iata" text,
"icao" text,
"airport" text,
"begin" text
);
Question: Which airport has perth as the city?
<|assistant|>
SELECT "airport" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"state_territory" text,
"iata" text,
"icao" text,
"airport" text,
"begin" text
);
Question: Which city has tasmania as the state/territory and a ICAO of ymhb?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"state_territory" text,
"iata" text,
"icao" text,
"airport" text,
"begin" text
);
Question: Which airport has an ICAO of ybcg?
<|assistant|>
SELECT "airport" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"state_territory" text,
"iata" text,
"icao" text,
"airport" text,
"begin" text
);
Question: What is the IATA that has new south wales as the state/territory begin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"state_territory" text,
"iata" text,
"icao" text,
"airport" text,
"begin" text
);
Question: What IATA has queensland as the state/territory and an ICAO of ybrk?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"state_territory" text,
"iata" text,
"icao" text,
"airport" text,
"begin" text
);
Question: What begin has victoria as the state/territory and a ICA0 of ymml?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: Who was the visitor on March 27?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: What was the record on March 14?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fm_stations" (
"frequency" text,
"name" text,
"format" text,
"call_sign" text,
"covered_location" text
);
Question: What format is at frequency 99.5 FM?
<|assistant|>
SELECT "format" FROM "fm_s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fm_stations" (
"frequency" text,
"name" text,
"format" text,
"call_sign" text,
"covered_location" text
);
Question: What format has the call sign DZFE?
<|assistant|>
SELECT "format" FROM "fm_st... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fm_stations" (
"frequency" text,
"name" text,
"format" text,
"call_sign" text,
"covered_location" text
);
Question: What covered location has a frequency of 90.7 FM
<|assistant|>
SELECT "covere... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fm_stations" (
"frequency" text,
"name" text,
"format" text,
"call_sign" text,
"covered_location" text
);
Question: What is the frequency of 104.3 business radio?
<|assistant|>
SELECT "frequenc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fm_stations" (
"frequency" text,
"name" text,
"format" text,
"call_sign" text,
"covered_location" text
);
Question: What name has the call sign DWYS?
<|assistant|>
SELECT "name" FROM "fm_statio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "villages" (
"name" text,
"faith" text,
"type" text,
"intake" real,
"dcsf_number" real,
"ofsted_number" real
);
Question: Who has a DCSF number of 3373?
<|assistant|>
SELECT "name" FROM "villa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "villages" (
"name" text,
"faith" text,
"type" text,
"intake" real,
"dcsf_number" real,
"ofsted_number" real
);
Question: What is the average primary intake with an Ofsted number of 117433 and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "villages" (
"name" text,
"faith" text,
"type" text,
"intake" real,
"dcsf_number" real,
"ofsted_number" real
);
Question: What is the lowest Ofsted number for a primary with a CE faith, intake... |
<|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,
"venue" text,
"attendance" real
);
Question: Can you tell me the Opponent that has the Result of w 37-14?
<|assistant|>
S... |
<|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,
"venue" text,
"attendance" real
);
Question: Can you tell me the Opponent that has the Date of october 11, 1953?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_sports" (
"club" text,
"sport" text,
"league" text,
"venue" text,
"established" real,
"championships" real
);
Question: What year was the West Coast League established than the c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_sports" (
"club" text,
"sport" text,
"league" text,
"venue" text,
"established" real,
"championships" real
);
Question: During the Apple Bowl having 0 championships, what was the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_sports" (
"club" text,
"sport" text,
"league" text,
"venue" text,
"established" real,
"championships" real
);
Question: What sport happened at Wildcat Stadium?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_sports" (
"club" text,
"sport" text,
"league" text,
"venue" text,
"established" real,
"championships" real
);
Question: How many championships does Evergreen Premier League have?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Position has a Round larger than 10, and a Name... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: How many Pick #s have a Name of tory epps, and a Roun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"attendance" real
);
Question: Which team was the visitor with a record of 5-2-0?
<|assistant|>
SELECT "visi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"attendance" real
);
Question: What is the score for the November 3 game?
<|assistant|>
SELECT "score" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polls" (
"source" text,
"date" text,
"martin" text,
"gr_ne" text,
"others" text,
"undecided" text
);
Question: What percent of others did ogm/news count when MARTIN had 9%?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polls" (
"source" text,
"date" text,
"martin" text,
"gr_ne" text,
"others" text,
"undecided" text
);
Question: What is the Undecided the others was 4%?
<|assistant|>
SELECT "undecided... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polls" (
"source" text,
"date" text,
"martin" text,
"gr_ne" text,
"others" text,
"undecided" text
);
Question: What is the Undecided on 2009-05-24?
<|assistant|>
SELECT "undecided" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polls" (
"source" text,
"date" text,
"martin" text,
"gr_ne" text,
"others" text,
"undecided" text
);
Question: What is the Date that has MARTIN of 7–9% and no Undecided?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polls" (
"source" text,
"date" text,
"martin" text,
"gr_ne" text,
"others" text,
"undecided" text
);
Question: What is the Date when MARTIN had 8%?
<|assistant|>
SELECT "date" FROM "o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"game" real,
"date" text,
"score" text,
"location" text,
"time" text,
"attendance" real
);
Question: Which Attendance has a Game smaller than 3, and a Date of october 31?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "best_figures_in_a_match" (
"rank" text,
"bowling" text,
"player" text,
"opponent" text,
"venue" text,
"season" text
);
Question: What is rank of player Charles Eady and a Bowling of 12/63?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_37_17_20" (
"outcome" text,
"date" text,
"surface" text,
"partnering" text,
"opponent" text,
"score" text
);
Question: Who was the Opponent partnering with Jordan Kerr, on a hard surf... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"year" real,
"trim" text,
"engine" text,
"power" text,
"torque" text,
"epa_2008_city" text
);
Question: What's the Year Average that has a Power of BHP (KW) and Trim of LS/2LT?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"year" real,
"trim" text,
"engine" text,
"power" text,
"torque" text,
"epa_2008_city" text
);
Question: Which Engine has a Year that's Larger than 2006 and Power of BHP (KW)?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"year" real,
"trim" text,
"engine" text,
"power" text,
"torque" text,
"epa_2008_city" text
);
Question: What Torque has a Power of HP (KW)?
<|assistant|>
SELECT "torque" FROM "engi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"year" real,
"trim" text,
"engine" text,
"power" text,
"torque" text,
"epa_2008_city" text
);
Question: What's the Year average that's got Trim of LS/LT and Power of HP (KW)?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Name the college with overall of 17
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Name the least overall for tony baker
<|assistant|>
S... |
<|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,
"decision" text,
"attendance" real,
"record" text
);
Question: Who was the visiting team when Winnipeg was the home... |
<|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,
"decision" text,
"attendance" real,
"record" text
);
Question: What was the score of the game with a decision of Pe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_num" text
);
Question: What is the Label of Catalogue # HVNLP26CD from United Kingdom?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_num" text
);
Question: What Country is Catalogue # ASW 50248 (724385024825) from?
<|assistant|>
SELECT "c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "races" (
"round" text,
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_car" text,
"winning_team" text,
"report" text
);
Question: Who is the winning team of the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: Loss of gonzález (0–3) had what attendance?
<|assistant|>
SELECT "attendance... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: Record of 92–70 had what date?
<|assistant|>
SELECT "date" FROM "game_log" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: Loss of kendrick (11–8) had what record?
<|assistant|>
SELECT "record" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: Date of september 28 had what record?
<|assistant|>
SELECT "record" FROM "ga... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: Attendance of 23,150 had what opponent?
<|assistant|>
SELECT "opponent" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: Attendance of 36,796 had what score?
<|assistant|>
SELECT "score" FROM "game... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"name" text,
"gp_gs" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
Question: What is the sum of Long for derrick locke?
<|assistant|>
SELECT SUM("long") FROM "rushin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"name" text,
"gp_gs" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
Question: What is the lowest Loss with Gain larger than 319 for derrick locke?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overview" (
"club" text,
"sport" text,
"founded" real,
"league" text,
"venue" text,
"head_coach" text
);
Question: Head Coach of wojciech kamiński is what club?
<|assistant|>
SELECT "club" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overview" (
"club" text,
"sport" text,
"founded" real,
"league" text,
"venue" text,
"head_coach" text
);
Question: Sport of football, and a Venue of stadion polonii is what league?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overview" (
"club" text,
"sport" text,
"founded" real,
"league" text,
"venue" text,
"head_coach" text
);
Question: Sport of gaelic football and hurling is what league?
<|assistant|>
SELECT "l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overview" (
"club" text,
"sport" text,
"founded" real,
"league" text,
"venue" text,
"head_coach" text
);
Question: Venue of Pepsi arena involved what club?
<|assistant|>
SELECT "club" FROM "o... |
<|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,
"wins" real
);
Question: What is the highest earnings for Tom watson who had a ranking larger than 2?
<|assistant|>
SELEC... |
<|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,
"wins" real
);
Question: What is the highest rank for the player who earns $4,263,133?
<|assistant|>
SELECT MAX("rank") F... |
<|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,
"wins" real
);
Question: What is the average number of wins for the player with a rank larger than 3 and earnings of $3,7... |
<|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,
"wins" real
);
Question: What is the highest number of wins for Tom Watson who earns less than $4,974,845?
<|assistant|>
... |
<|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,
"wins" real
);
Question: What is the highest earnings for curtis strange?
<|assistant|>
SELECT MAX("earnings") FROM "lead... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" real,
"avg_finish" real,
"winnings" text,
"position" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Which Second has a Skip of barbora vojtusova?
<|assistant|>
SELECT "second" FROM "group_b2" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Which Skip did marju velga lead?
<|assistant|>
SELECT "skip" FROM "group_b2" WHERE "lead"='marju ve... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Which Lead has a Second of katrin kuusk?
<|assistant|>
SELECT "lead" FROM "group_b2" WHERE "second"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Which Third has a Skip of ellen vogt?
<|assistant|>
SELECT "third" FROM "group_b2" WHERE "skip"='el... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Which Third has a Second of agnieszka ogrodniczek?
<|assistant|>
SELECT "third" FROM "group_b2" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: What is Spain's skip?
<|assistant|>
SELECT "skip" FROM "group_b2" WHERE "nation"='spain';<|endoftex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vermont_counties_ranked_by_per_capita_in" (
"county" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vermont_counties_ranked_by_per_capita_in" (
"county" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.