chat_prompt
stringlengths
438
1.53k
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What date was the Home team fitzroy?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_2\" WHERE \"home_team\"='fitzroy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the largest crowd when st kilda was the away team?" }, { "role": "assistant", "content": "SELECT MAX(\"crowd\") FROM \"round_2\" WHERE \"away_team\"='st kilda';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the score of essendon when they were the away team?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_2\" WHERE \"away_team\"='essendon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the home team when there were more than 13,000 in the crowd at brunswick street oval?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_2\" WHERE \"crowd\">'13,000' AND \"venue\"='brunswick street oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What away team played when the home team scoreed 5.7 (37)?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_2\" WHERE \"home_team_score\"='5.7 (37)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What home team played at the western oval?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_2\" WHERE \"venue\"='western oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"particulars_and_characteristics\" text,\n \"shivalik_zone\" text,\n \"mid_hill_zone\" text,\n \"high_hill_zone\" text,\n \"trance_n_himalaya_zone\" text\n);\n\nQuestion: Which mid-hill zone has a slightly warm temperature?" }, { "role": "assistant", "content": "SELECT \"high_hill_zone\" FROM \"references\" WHERE \"mid_hill_zone\"='slightly warm temperature';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: Which one took place on December 3, 1995?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"date\"='december 3, 1995';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: Who was the opponent of the New Orleans Saints?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"opponent\"='new orleans saints';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"superbike_race_1_classification\" (\n \"rider\" text,\n \"bike\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: What grid has 23 laps done by Josh Brookes?" }, { "role": "assistant", "content": "SELECT \"grid\" FROM \"superbike_race_1_classification\" WHERE \"laps\"=23 AND \"rider\"='josh brookes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"superbike_race_1_classification\" (\n \"rider\" text,\n \"bike\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: What is noriyuki haga's time?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"superbike_race_1_classification\" WHERE \"rider\"='noriyuki haga';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"superbike_race_1_classification\" (\n \"rider\" text,\n \"bike\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: What laps have a Time of +28.778?" }, { "role": "assistant", "content": "SELECT \"laps\" FROM \"superbike_race_1_classification\" WHERE \"time\"='+28.778';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_17\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Where was the game held where Hawthorn was the away team?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_17\" WHERE \"away_team\"='hawthorn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_17\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the date of the game when Richmond was the home team?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_17\" WHERE \"home_team\"='richmond';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_17\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who was the home team at the game played at Kardinia Park?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_17\" WHERE \"venue\"='kardinia park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the away team score when the venue was Western Oval?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_10\" WHERE \"venue\"='western oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the date of the game with an away team score of 6.12 (48)?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_10\" WHERE \"away_team_score\"='6.12 (48)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the away team when the away team score is 8.17 (65)?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_10\" WHERE \"away_team_score\"='8.17 (65)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the date of the game when the venue is MCG?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_10\" WHERE \"venue\"='mcg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the home team score when the away team is Essendon?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_10\" WHERE \"away_team\"='essendon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the name of the away team whose venue is Kardinia Park?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_10\" WHERE \"venue\"='kardinia park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"opponent\" text,\n \"result\" text,\n \"stadium\" text,\n \"record\" text,\n \"attendance\" text\n);\n\nQuestion: What was the result when they were on a bye week?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"stadium\"='bye week';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"opponent\" text,\n \"result\" text,\n \"stadium\" text,\n \"record\" text,\n \"attendance\" text\n);\n\nQuestion: What was the result when the attendance was 25,418?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"attendance\"='25,418';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dos_shells\" (\n \"name\" text,\n \"release_date\" text,\n \"latest_version\" text,\n \"status_support\" text,\n \"source_model\" text,\n \"architecture\" text,\n \"target_market\" text\n);\n\nQuestion: Which of the Latest version was released on Release date 1987-12-09?" }, { "role": "assistant", "content": "SELECT \"latest_version\" FROM \"dos_shells\" WHERE \"release_date\"='1987-12-09';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dos_shells\" (\n \"name\" text,\n \"release_date\" text,\n \"latest_version\" text,\n \"status_support\" text,\n \"source_model\" text,\n \"architecture\" text,\n \"target_market\" text\n);\n\nQuestion: Which Source model has a 16-bit* Architecture?" }, { "role": "assistant", "content": "SELECT \"source_model\" FROM \"dos_shells\" WHERE \"architecture\"='16-bit*';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dos_shells\" (\n \"name\" text,\n \"release_date\" text,\n \"latest_version\" text,\n \"status_support\" text,\n \"source_model\" text,\n \"architecture\" text,\n \"target_market\" text\n);\n\nQuestion: Which of the Latest version had a 16-bit Architecture and was released on Release date 1985-11-20?" }, { "role": "assistant", "content": "SELECT \"latest_version\" FROM \"dos_shells\" WHERE \"architecture\"='16-bit' AND \"release_date\"='1985-11-20';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dos_shells\" (\n \"name\" text,\n \"release_date\" text,\n \"latest_version\" text,\n \"status_support\" text,\n \"source_model\" text,\n \"architecture\" text,\n \"target_market\" text\n);\n\nQuestion: Which Architecture was released on Release date 1988-05-27?" }, { "role": "assistant", "content": "SELECT \"architecture\" FROM \"dos_shells\" WHERE \"release_date\"='1988-05-27';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dos_shells\" (\n \"name\" text,\n \"release_date\" text,\n \"latest_version\" text,\n \"status_support\" text,\n \"source_model\" text,\n \"architecture\" text,\n \"target_market\" text\n);\n\nQuestion: Which Source model has a Release date of 1992-04-06?" }, { "role": "assistant", "content": "SELECT \"source_model\" FROM \"dos_shells\" WHERE \"release_date\"='1992-04-06';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_18\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who is the away side when collingwood is at home?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_18\" WHERE \"home_team\"='collingwood';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_18\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who is the home team at arden street oval?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_18\" WHERE \"venue\"='arden street oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_18\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who is the home team that scores 12.10 (82)?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_18\" WHERE \"home_team_score\"='12.10 (82)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"am\" (\n \"freq\" real,\n \"call\" text,\n \"city\" text,\n \"owner\" text,\n \"day_power_w\" real,\n \"night_power\" real,\n \"format\" text,\n \"stereo\" text\n);\n\nQuestion: What is the WPW freq with a day power of 250?" }, { "role": "assistant", "content": "SELECT SUM(\"freq\") FROM \"am\" WHERE \"owner\"='wpw' AND \"day_power_w\">250;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"am\" (\n \"freq\" real,\n \"call\" text,\n \"city\" text,\n \"owner\" text,\n \"day_power_w\" real,\n \"night_power\" real,\n \"format\" text,\n \"stereo\" text\n);\n\nQuestion: What is the Triad frew with a day power of 5,000?" }, { "role": "assistant", "content": "SELECT COUNT(\"freq\") FROM \"am\" WHERE \"day_power_w\"='5,000' AND \"owner\"='triad';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"am\" (\n \"freq\" real,\n \"call\" text,\n \"city\" text,\n \"owner\" text,\n \"day_power_w\" real,\n \"night_power\" real,\n \"format\" text,\n \"stereo\" text\n);\n\nQuestion: Is WPEO in stereo?" }, { "role": "assistant", "content": "SELECT \"stereo\" FROM \"am\" WHERE \"call\"='wpeo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final\" (\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"100m\" real,\n \"150m\" text,\n \"time\" text\n);\n\nQuestion: What is Park Tae-Hwan's final time?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"final\" WHERE \"name\"='park tae-hwan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the largest crowd for an away Carlton game?" }, { "role": "assistant", "content": "SELECT MAX(\"crowd\") FROM \"round_2\" WHERE \"away_team\"='carlton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who was the home team for the game played at Corio Oval?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_2\" WHERE \"venue\"='corio oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who was the home team for the game where the away team scored 16.8 (104) and the crowd was over 12,000?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_2\" WHERE \"crowd\">'12,000' AND \"away_team_score\"='16.8 (104)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the crowd size at the game where the home team scored 12.17 (89)?" }, { "role": "assistant", "content": "SELECT AVG(\"crowd\") FROM \"round_2\" WHERE \"home_team_score\"='12.17 (89)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"durations_and_prices\" (\n \"valid\" text,\n \"within\" text,\n \"price_in_euro\" real,\n \"price_per_valid_day\" text,\n \"price_per_within_day\" text,\n \"area\" text\n);\n\nQuestion: What is the Euro for a ticket with a Price per \"Within\" Day of &0 8?" }, { "role": "assistant", "content": "SELECT SUM(\"price_in_euro\") FROM \"durations_and_prices\" WHERE \"price_per_within_day\"='&0 8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"durations_and_prices\" (\n \"valid\" text,\n \"within\" text,\n \"price_in_euro\" real,\n \"price_per_valid_day\" text,\n \"price_per_within_day\" text,\n \"area\" text\n);\n\nQuestion: What is the lowest Euro for a ticket with a price per valid day of & 34?" }, { "role": "assistant", "content": "SELECT MIN(\"price_in_euro\") FROM \"durations_and_prices\" WHERE \"price_per_valid_day\"='& 34';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2001_new_england_patriots_draft_selectio\" (\n \"round\" real,\n \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: The safety position is represented in the draft by which colleges?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"2001_new_england_patriots_draft_selectio\" WHERE \"position\"='safety';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2001_new_england_patriots_draft_selectio\" (\n \"round\" real,\n \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: In how many rounds of the draft was there a college from Georgia involved?" }, { "role": "assistant", "content": "SELECT COUNT(\"round\") FROM \"2001_new_england_patriots_draft_selectio\" WHERE \"college\"='georgia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"points\" real\n);\n\nQuestion: What is the Time of Driver Jan Heylen (r)?" }, { "role": "assistant", "content": "SELECT \"time_retired\" FROM \"race\" WHERE \"driver\"='jan heylen (r)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"points\" real\n);\n\nQuestion: What Grid has Driver Cristiano da Matta?" }, { "role": "assistant", "content": "SELECT \"grid\" FROM \"race\" WHERE \"driver\"='cristiano da matta';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"points\" real\n);\n\nQuestion: Which Driver has less than 84 laps, more than 9 points and is on Rocketsports Racing Team?" }, { "role": "assistant", "content": "SELECT \"driver\" FROM \"race\" WHERE \"laps\"<84 AND \"points\">9 AND \"team\"='rocketsports racing';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"points\" real\n);\n\nQuestion: Which team has less than 73 laps and a gearbox time?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"race\" WHERE \"laps\"<73 AND \"time_retired\"='gearbox';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"locomotives\" (\n \"nbr_class\" real,\n \"type\" text,\n \"introduced\" real,\n \"driving_wheel\" text,\n \"total\" real,\n \"extinct\" real\n);\n\nQuestion: What is the car with the lowest extinct year that has a NBR class of 32?" }, { "role": "assistant", "content": "SELECT MIN(\"extinct\") FROM \"locomotives\" WHERE \"nbr_class\"=32;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_9\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the home team that played at Corio Oval?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_9\" WHERE \"venue\"='corio oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_9\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: At which venue did the home team score 12.15 (87)?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_9\" WHERE \"home_team_score\"='12.15 (87)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_9\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: At which venue did the away team score 15.9 (99)?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_9\" WHERE \"away_team_score\"='15.9 (99)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_9\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: On which date was St Kilda the home team?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_9\" WHERE \"home_team\"='st kilda';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"all_time_series_records_against_big_12_m\" (\n \"texas_vs\" text,\n \"overall_record\" text,\n \"at_austin\" text,\n \"at_opponent_s_venue\" text,\n \"at_neutral_site\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text\n);\n\nQuestion: What is the Austin record of Kansas State?" }, { "role": "assistant", "content": "SELECT \"at_austin\" FROM \"all_time_series_records_against_big_12_m\" WHERE \"texas_vs\"='kansas state';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"all_time_series_records_against_big_12_m\" (\n \"texas_vs\" text,\n \"overall_record\" text,\n \"at_austin\" text,\n \"at_opponent_s_venue\" text,\n \"at_neutral_site\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text\n);\n\nQuestion: What was the result of the last 5 meetings for a team with an L 1 streak?" }, { "role": "assistant", "content": "SELECT \"last_5_meetings\" FROM \"all_time_series_records_against_big_12_m\" WHERE \"current_streak\"='l 1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_titles_8\" (\n \"outcome\" text,\n \"date\" real,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: Who is the partner on a date later than 1971 who is the runner-up with a score of 3\u20136, 3\u20136?" }, { "role": "assistant", "content": "SELECT \"partner\" FROM \"doubles_titles_8\" WHERE \"date\">1971 AND \"outcome\"='runner-up' AND \"score_in_the_final\"='3\u20136, 3\u20136';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notes\" (\n \"year\" real,\n \"player\" text,\n \"country\" text,\n \"team\" text,\n \"position\" text\n);\n\nQuestion: What is the first year that Mario Lemieux from Canada won playing center?" }, { "role": "assistant", "content": "SELECT MIN(\"year\") FROM \"notes\" WHERE \"country\"='canada' AND \"position\"='center' AND \"player\"='mario lemieux';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notes\" (\n \"year\" real,\n \"player\" text,\n \"country\" text,\n \"team\" text,\n \"position\" text\n);\n\nQuestion: What country did mario lemieux play for in 1994?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"notes\" WHERE \"player\"='mario lemieux' AND \"year\"=1994;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notes\" (\n \"year\" real,\n \"player\" text,\n \"country\" text,\n \"team\" text,\n \"position\" text\n);\n\nQuestion: What player played center in 2010?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"notes\" WHERE \"position\"='center' AND \"year\"=2010;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_points_in_a_match\" (\n \"player\" text,\n \"tries\" text,\n \"conv\" text,\n \"pens\" text,\n \"drop\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: What is the drop number on 10/02/2007?" }, { "role": "assistant", "content": "SELECT \"drop\" FROM \"most_points_in_a_match\" WHERE \"date\"='10/02/2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_points_in_a_match\" (\n \"player\" text,\n \"tries\" text,\n \"conv\" text,\n \"pens\" text,\n \"drop\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: What is the drop number on 08/06/2011?" }, { "role": "assistant", "content": "SELECT \"drop\" FROM \"most_points_in_a_match\" WHERE \"date\"='08/06/2011';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_points_in_a_match\" (\n \"player\" text,\n \"tries\" text,\n \"conv\" text,\n \"pens\" text,\n \"drop\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: How many drops occurred with 0 pens and Fangatapu Apikotoa playing?" }, { "role": "assistant", "content": "SELECT \"drop\" FROM \"most_points_in_a_match\" WHERE \"pens\"='0' AND \"player\"='fangatapu apikotoa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_points_in_a_match\" (\n \"player\" text,\n \"tries\" text,\n \"conv\" text,\n \"pens\" text,\n \"drop\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: Who is the player associated with the Esher venue?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"most_points_in_a_match\" WHERE \"venue\"='esher';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_points_in_a_match\" (\n \"player\" text,\n \"tries\" text,\n \"conv\" text,\n \"pens\" text,\n \"drop\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: What is the conversion number with 0 drops on 02/07/2011?" }, { "role": "assistant", "content": "SELECT \"conv\" FROM \"most_points_in_a_match\" WHERE \"drop\"='0' AND \"date\"='02/07/2011';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_points_in_a_match\" (\n \"player\" text,\n \"tries\" text,\n \"conv\" text,\n \"pens\" text,\n \"drop\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: In which venue did 0 pens and 1 try occur?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"most_points_in_a_match\" WHERE \"pens\"='0' AND \"tries\"='1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"exhibition_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What was the score of the game against the St. Louis Cardinals?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"exhibition_schedule\" WHERE \"opponent\"='st. louis cardinals';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"comparison_table_of_hp_laser_jet_4000_mo\" (\n \"model\" real,\n \"introduction\" text,\n \"discontinued\" text,\n \"cpu_speed\" text,\n \"print_speed_ppm\" text,\n \"standard_memory\" text,\n \"maximum_memory\" text\n);\n\nQuestion: Which model has a CPU speed of 133mhz?" }, { "role": "assistant", "content": "SELECT \"model\" FROM \"comparison_table_of_hp_laser_jet_4000_mo\" WHERE \"cpu_speed\"='133mhz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"comparison_table_of_hp_laser_jet_4000_mo\" (\n \"model\" real,\n \"introduction\" text,\n \"discontinued\" text,\n \"cpu_speed\" text,\n \"print_speed_ppm\" text,\n \"standard_memory\" text,\n \"maximum_memory\" text\n);\n\nQuestion: Which model has a maximum memory of 512 mb?" }, { "role": "assistant", "content": "SELECT MAX(\"model\") FROM \"comparison_table_of_hp_laser_jet_4000_mo\" WHERE \"maximum_memory\"='512 mb';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"comparison_table_of_hp_laser_jet_4000_mo\" (\n \"model\" real,\n \"introduction\" text,\n \"discontinued\" text,\n \"cpu_speed\" text,\n \"print_speed_ppm\" text,\n \"standard_memory\" text,\n \"maximum_memory\" text\n);\n\nQuestion: What is the maximum memory of the model that has a standard memory of 16 mb?" }, { "role": "assistant", "content": "SELECT \"maximum_memory\" FROM \"comparison_table_of_hp_laser_jet_4000_mo\" WHERE \"standard_memory\"='16 mb';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the largest crowd for a Melbourne away team?" }, { "role": "assistant", "content": "SELECT MAX(\"crowd\") FROM \"round_1\" WHERE \"away_team\"='melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_9\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the home team score when the home team is Essendon?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_9\" WHERE \"home_team\"='essendon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_9\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the home team when the home team score is 12.17 (89)?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_9\" WHERE \"home_team_score\"='12.17 (89)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_9\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the away team when the away team score is 10.10 (70)?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_9\" WHERE \"away_team_score\"='10.10 (70)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"tv_time\" text\n);\n\nQuestion: Which opponent was playing on December 20, 1998?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"date\"='december 20, 1998';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who was the home team that had a score of 13.11 (89)?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_15\" WHERE \"home_team_score\"='13.11 (89)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When was the game that was held at the Princes Park?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_15\" WHERE \"venue\"='princes park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the smallest crowd size at a home game for Footscray?" }, { "role": "assistant", "content": "SELECT MIN(\"crowd\") FROM \"round_15\" WHERE \"home_team\"='footscray';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When was the game where the home team scored 18.14 (122)?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_15\" WHERE \"home_team_score\"='18.14 (122)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was Melbourne's score as the home team?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_15\" WHERE \"home_team\"='melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the away team's score when the crowd at Arden Street Oval was larger than 31,481?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_15\" WHERE \"crowd\">'31,481' AND \"venue\"='arden street oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the away team that played Fitzroy?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_15\" WHERE \"home_team\"='fitzroy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the sum of the crowds at Western Oval?" }, { "role": "assistant", "content": "SELECT SUM(\"crowd\") FROM \"round_15\" WHERE \"venue\"='western oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the total crowd size when the away team scored 17.13 (115)?" }, { "role": "assistant", "content": "SELECT COUNT(\"crowd\") FROM \"round_15\" WHERE \"away_team_score\"='17.13 (115)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Where did the home team score 18.17 (125)?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_15\" WHERE \"home_team_score\"='18.17 (125)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" real,\n \"rider\" text,\n \"country\" text,\n \"distance\" text,\n \"pacing\" text,\n \"velodrome\" text\n);\n\nQuestion: What country had a winner in 1907?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"winners\" WHERE \"year\"=1907;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" real,\n \"rider\" text,\n \"country\" text,\n \"distance\" text,\n \"pacing\" text,\n \"velodrome\" text\n);\n\nQuestion: What velodrome took place earlier than 1950 with a winner from France in tandem paced over a distance of 951.750\u2009km?" }, { "role": "assistant", "content": "SELECT \"velodrome\" FROM \"winners\" WHERE \"year\"<1950 AND \"country\"='france' AND \"pacing\"='tandem paced' AND \"distance\"='951.750\u2009km';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff\" text,\n \"game_site\" text,\n \"record\" text\n);\n\nQuestion: Where was the game played when they kickoff was 12:00 p.m., and a Record of 8-5?" }, { "role": "assistant", "content": "SELECT \"game_site\" FROM \"schedule\" WHERE \"kickoff\"='12:00 p.m.' AND \"record\"='8-5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff\" text,\n \"game_site\" text,\n \"record\" text\n);\n\nQuestion: What date has a Game site of bye?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"game_site\"='bye';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff\" text,\n \"game_site\" text,\n \"record\" text\n);\n\nQuestion: What is the record which shows Kickoff as kickoff?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"schedule\" WHERE \"kickoff\"='kickoff';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff\" text,\n \"game_site\" text,\n \"record\" text\n);\n\nQuestion: What is the record when the game was played at raymond james stadium?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"schedule\" WHERE \"game_site\"='raymond james stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff\" text,\n \"game_site\" text,\n \"record\" text\n);\n\nQuestion: What is the kickoff for the game on october 22, 2000?" }, { "role": "assistant", "content": "SELECT \"kickoff\" FROM \"schedule\" WHERE \"date\"='october 22, 2000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"united_states\" (\n \"network\" text,\n \"origin_of_programming\" text,\n \"language\" text,\n \"genre\" text,\n \"service\" text\n);\n\nQuestion: Which Hindi network is based in India and uses dish service and shows general programming?" }, { "role": "assistant", "content": "SELECT \"network\" FROM \"united_states\" WHERE \"service\"='dish' AND \"language\"='hindi' AND \"origin_of_programming\"='india' AND \"genre\"='general';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"united_states\" (\n \"network\" text,\n \"origin_of_programming\" text,\n \"language\" text,\n \"genre\" text,\n \"service\" text\n);\n\nQuestion: Which language is used by the optimum TV service that shows cricket and is based in the United States?" }, { "role": "assistant", "content": "SELECT \"language\" FROM \"united_states\" WHERE \"service\"='optimum tv' AND \"origin_of_programming\"='united states' AND \"genre\"='cricket';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"united_states\" (\n \"network\" text,\n \"origin_of_programming\" text,\n \"language\" text,\n \"genre\" text,\n \"service\" text\n);\n\nQuestion: What is the origin of the Malayalam Dish Service that shows general programming on the Asianet Plus network?" }, { "role": "assistant", "content": "SELECT \"origin_of_programming\" FROM \"united_states\" WHERE \"service\"='dish' AND \"language\"='malayalam' AND \"genre\"='general' AND \"network\"='asianet plus';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What is the average grid number with a ferrari and a time or retired time of 1:32:35.101?" }, { "role": "assistant", "content": "SELECT AVG(\"grid\") FROM \"race\" WHERE \"constructor\"='ferrari' AND \"time_retired\"='1:32:35.101';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What week of the season was November 24, 1957?" }, { "role": "assistant", "content": "SELECT \"week\" FROM \"regular_season_schedule\" WHERE \"date\"='november 24, 1957';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season_schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What was the score of the game against the San Diego Chargers?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"regular_season_schedule\" WHERE \"opponent\"='san diego chargers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What is the week more than 58,675 attended on october 22, 1995?" }, { "role": "assistant", "content": "SELECT SUM(\"week\") FROM \"schedule\" WHERE \"attendance\">'58,675' AND \"date\"='october 22, 1995';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What is the latest week with the date of november 5, 1995?" }, { "role": "assistant", "content": "SELECT MAX(\"week\") FROM \"schedule\" WHERE \"date\"='november 5, 1995';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: How many weeks was the attendance less than 74,171 and the result was w 26\u201310?" }, { "role": "assistant", "content": "SELECT COUNT(\"week\") FROM \"schedule\" WHERE \"attendance\"<'74,171' AND \"result\"='w 26\u201310';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_finals\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What was the outcome of the Tournament in Buenos Aires?" }, { "role": "assistant", "content": "SELECT \"outcome\" FROM \"doubles_finals\" WHERE \"tournament\"='buenos aires';" } ]