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 \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: On what Date was the Attendance 16,212?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"attendance\"='16,212';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the Attendance on May 12, when the New York Yankees were the Opponent?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"game_log\" WHERE \"opponent\"='new york yankees' AND \"date\"='may 12';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_12\" (\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: Which Venue has a Home team score of 22.13 (145)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_12\" WHERE \"home_team_score\"='22.13 (145)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_12\" (\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: Which Date has a Venue of junction oval?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_12\" WHERE \"venue\"='junction oval';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_12\" (\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: Which total number of Crowd has a Home team of melbourne?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"crowd\") FROM \"round_12\" 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 \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" real\n);\n\nQuestion: What is the lowest 1st prize for florida tournaments and a Score of 200 (-16)?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"1st_prize\") FROM \"tournament_results\" WHERE \"location\"='florida' AND \"score\"='200 (-16)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"moto_gp_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: Which grid has a time/retired of +27.347?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"grid\") FROM \"moto_gp_classification\" WHERE \"time_retired\"='+27.347';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"events\" (\n \"tournament\" text,\n \"date\" text,\n \"city\" text,\n \"country\" text,\n \"surface\" text,\n \"singles_champions\" text\n);\n\nQuestion: Who was the Singles Champions in Trieste, Italy?"
},
{
"role": "assistant",
"content": "SELECT \"singles_champions\" FROM \"events\" WHERE \"country\"='italy' AND \"city\"='trieste';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"events\" (\n \"tournament\" text,\n \"date\" text,\n \"city\" text,\n \"country\" text,\n \"surface\" text,\n \"singles_champions\" text\n);\n\nQuestion: On what Surface will the Venezuela F5 Futures in Caracas be played?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"events\" WHERE \"city\"='caracas' AND \"tournament\"='venezuela f5 futures';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"events\" (\n \"tournament\" text,\n \"date\" text,\n \"city\" text,\n \"country\" text,\n \"surface\" text,\n \"singles_champions\" text\n);\n\nQuestion: What is the type of Surface for the New Zealand F1 Futures Tournament?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"events\" WHERE \"tournament\"='new zealand f1 futures';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"events\" (\n \"tournament\" text,\n \"date\" text,\n \"city\" text,\n \"country\" text,\n \"surface\" text,\n \"singles_champions\" text\n);\n\nQuestion: In what Country will Dennis Bl\u00f6mke play the Germany F13 Futures Tournament?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"events\" WHERE \"singles_champions\"='dennis bl\u00f6mke' AND \"tournament\"='germany f13 futures';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"events\" (\n \"tournament\" text,\n \"date\" text,\n \"city\" text,\n \"country\" text,\n \"surface\" text,\n \"singles_champions\" text\n);\n\nQuestion: On what Date will the Argentina F17 Futures Tournament be played in Argentina?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"events\" WHERE \"country\"='argentina' AND \"tournament\"='argentina f17 futures';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What are the average laps for jackie stewart?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"laps\") FROM \"classification\" WHERE \"driver\"='jackie stewart';"
}
] |
[
{
"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: When did the away team have a score of 11.14 (80)?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_2\" WHERE \"away_team_score\"='11.14 (80)';"
}
] |
[
{
"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: Which was the home team that had an opponent have a score of 11.6 (72)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_2\" WHERE \"away_team_score\"='11.6 (72)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"goal\" real,\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is the result in fort lauderdale, florida?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"international_goals\" WHERE \"venue\"='fort lauderdale, florida';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"goal\" real,\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What venue had less than 2 goals?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"international_goals\" WHERE \"goal\"<2;"
}
] |
[
{
"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 was the attendance when Fitzroy played as the away team?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"crowd\") FROM \"round_9\" WHERE \"away_team\"='fitzroy';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners_of_the_colonial_turf_cup\" (\n \"year\" real,\n \"winner\" text,\n \"jockey\" text,\n \"trainer\" text,\n \"owner\" text,\n \"distance_miles\" text,\n \"time\" text\n);\n\nQuestion: Who was the trainer with Robert Courtney was owner?"
},
{
"role": "assistant",
"content": "SELECT \"trainer\" FROM \"winners_of_the_colonial_turf_cup\" WHERE \"owner\"='robert courtney';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners_of_the_colonial_turf_cup\" (\n \"year\" real,\n \"winner\" text,\n \"jockey\" text,\n \"trainer\" text,\n \"owner\" text,\n \"distance_miles\" text,\n \"time\" text\n);\n\nQuestion: What year was Jeff Mullins?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"winners_of_the_colonial_turf_cup\" WHERE \"trainer\"='jeff mullins';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: In what grid did Richard Robarts make 36 laps?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"grid\") FROM \"classification\" WHERE \"driver\"='richard robarts' AND \"laps\"<36;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: How many laps were completed in grid 18?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"laps\") FROM \"classification\" WHERE \"grid\"=18;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"tournament\" text,\n \"venue\" text,\n \"result\" text,\n \"event\" text\n);\n\nQuestion: What was the venue where the result was 12th?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"achievements\" WHERE \"result\"='12th';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group\" (\n \"species\" text,\n \"strain\" text,\n \"type\" text,\n \"base_pairs\" real,\n \"genes\" real\n);\n\nQuestion: What species has more than 2,030 genes?"
},
{
"role": "assistant",
"content": "SELECT \"species\" FROM \"group\" WHERE \"genes\">'2,030';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group\" (\n \"species\" text,\n \"strain\" text,\n \"type\" text,\n \"base_pairs\" real,\n \"genes\" real\n);\n\nQuestion: How many genes in the species Rubrobacter Xylanophilus?"
},
{
"role": "assistant",
"content": "SELECT \"genes\" FROM \"group\" WHERE \"species\"='rubrobacter xylanophilus';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group\" (\n \"species\" text,\n \"strain\" text,\n \"type\" text,\n \"base_pairs\" real,\n \"genes\" real\n);\n\nQuestion: What is the lowest number of genes in Rubrobacter Xylanophilus?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"genes\") FROM \"group\" WHERE \"species\"='rubrobacter xylanophilus';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group\" (\n \"species\" text,\n \"strain\" text,\n \"type\" text,\n \"base_pairs\" real,\n \"genes\" real\n);\n\nQuestion: What is the average number of base pairs with 784 genes?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"base_pairs\") FROM \"group\" WHERE \"genes\"=784;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group\" (\n \"species\" text,\n \"strain\" text,\n \"type\" text,\n \"base_pairs\" real,\n \"genes\" real\n);\n\nQuestion: What is the lowest number of genes with less than 927,303 base pairs in Acidobacteria Bacterium?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"genes\") FROM \"group\" WHERE \"base_pairs\"<'927,303' AND \"species\"='acidobacteria bacterium';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ippt_standards\" (\n \"grade\" text,\n \"points\" real,\n \"sit_up_reps\" text,\n \"standing_broad_jump_cm\" text,\n \"chin_up_reps\" text,\n \"shuttle_run_sec\" text,\n \"2_4km_run_min_sec\" text\n);\n\nQuestion: How many points are obtained when a standing broad jump is 207-215 cm?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"points\") FROM \"ippt_standards\" WHERE \"standing_broad_jump_cm\"='207-215';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ippt_standards\" (\n \"grade\" text,\n \"points\" real,\n \"sit_up_reps\" text,\n \"standing_broad_jump_cm\" text,\n \"chin_up_reps\" text,\n \"shuttle_run_sec\" text,\n \"2_4km_run_min_sec\" text\n);\n\nQuestion: How many points are there, when the grade is A?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"points\") FROM \"ippt_standards\" WHERE \"grade\"='a';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ippt_standards\" (\n \"grade\" text,\n \"points\" real,\n \"sit_up_reps\" text,\n \"standing_broad_jump_cm\" text,\n \"chin_up_reps\" text,\n \"shuttle_run_sec\" text,\n \"2_4km_run_min_sec\" text\n);\n\nQuestion: If a person does 3 chin-up reps, what grade do they obtain?"
},
{
"role": "assistant",
"content": "SELECT \"grade\" FROM \"ippt_standards\" WHERE \"chin_up_reps\"='3';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ippt_standards\" (\n \"grade\" text,\n \"points\" real,\n \"sit_up_reps\" text,\n \"standing_broad_jump_cm\" text,\n \"chin_up_reps\" text,\n \"shuttle_run_sec\" text,\n \"2_4km_run_min_sec\" text\n);\n\nQuestion: How many seconds is a shuttle run that give 2 points?"
},
{
"role": "assistant",
"content": "SELECT \"shuttle_run_sec\" FROM \"ippt_standards\" WHERE \"points\"=2;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"away\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"position_in_the_table\" text\n);\n\nQuestion: Tell me the outgoing manager for resigned and replaced by manolo villanova for real zaragoza"
},
{
"role": "assistant",
"content": "SELECT \"outgoing_manager\" FROM \"away\" WHERE \"manner_of_departure\"='resigned' AND \"team\"='real zaragoza' AND \"replaced_by\"='manolo villanova';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"away\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"position_in_the_table\" text\n);\n\nQuestion: Name the replaced by for racing santander"
},
{
"role": "assistant",
"content": "SELECT \"replaced_by\" FROM \"away\" WHERE \"team\"='racing santander';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"moto_gp_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What Grid had 14 laps completed?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"grid\") FROM \"moto_gp_classification\" WHERE \"laps\"=14;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"moto_gp_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What is the lowest Grid with 25 laps manufactured by Honda with a time of +54.103?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"grid\") FROM \"moto_gp_classification\" WHERE \"laps\"=25 AND \"manufacturer\"='honda' AND \"time_retired\"='+54.103';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"moto_gp_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: How many laps were timed at +1:02.315?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"laps\") FROM \"moto_gp_classification\" WHERE \"time_retired\"='+1:02.315';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"all_time_playoffs_records\" (\n \"pts_rank\" text,\n \"club\" text,\n \"appearances_vs_seasons\" text,\n \"appearances_percetages\" text,\n \"ppg_rank\" text\n);\n\nQuestion: What is the points ranking of Chicago Fire?"
},
{
"role": "assistant",
"content": "SELECT \"pts_rank\" FROM \"all_time_playoffs_records\" WHERE \"club\"='chicago fire';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"round\" text,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Who is the opponent with a time of 1:16?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"mixed_martial_arts_record\" WHERE \"time\"='1:16';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"round\" text,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What round has a method of submission?"
},
{
"role": "assistant",
"content": "SELECT \"round\" FROM \"mixed_martial_arts_record\" WHERE \"method\"='submission';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_career\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Which competition did he win on August 15, 2012?"
},
{
"role": "assistant",
"content": "SELECT \"competition\" FROM \"international_career\" WHERE \"result\"='win' AND \"date\"='august 15, 2012';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_career\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Where was the competition on August 15, 2012?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"international_career\" WHERE \"date\"='august 15, 2012';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_career\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: When was the competition that had a score of 3-0?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"international_career\" WHERE \"score\"='3-0';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_career\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What was the result of the UEFA Euro 2008 Qualifying competition?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"international_career\" WHERE \"competition\"='uefa euro 2008 qualifying';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_seven\" (\n \"pick_num\" real,\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"league_from\" text\n);\n\nQuestion: What nationality is Steven Anthony?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"round_seven\" WHERE \"player\"='steven anthony';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_seven\" (\n \"pick_num\" real,\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"league_from\" text\n);\n\nQuestion: What is the highest pick number from Slovakia?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"pick_num\") FROM \"round_seven\" WHERE \"nationality\"='slovakia';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_seven\" (\n \"pick_num\" real,\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"league_from\" text\n);\n\nQuestion: What is the lowest pick number for the Russian Major League?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"pick_num\") FROM \"round_seven\" WHERE \"league_from\"='russian major league';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_seven\" (\n \"pick_num\" real,\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"league_from\" text\n);\n\nQuestion: What team is from the Russian Major League?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"round_seven\" WHERE \"league_from\"='russian major league';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_seven\" (\n \"pick_num\" real,\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"league_from\" text\n);\n\nQuestion: Which league has a pick number larger than 204 from Canada and LW as the position?"
},
{
"role": "assistant",
"content": "SELECT \"league_from\" FROM \"round_seven\" WHERE \"pick_num\">204 AND \"nationality\"='canada' AND \"position\"='lw';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007_rugby_world_cup_squads\" (\n \"player\" text,\n \"position\" text,\n \"date_of_birth_age\" text,\n \"caps\" real,\n \"club_province\" text\n);\n\nQuestion: Who is the player from Aurillac?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"2007_rugby_world_cup_squads\" WHERE \"club_province\"='aurillac';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_11\" (\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 away team score 13.14 (92)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_11\" WHERE \"away_team_score\"='13.14 (92)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pairs\" (\n \"rank\" real,\n \"name\" text,\n \"nation\" text,\n \"points\" real,\n \"places\" real\n);\n\nQuestion: what is the points when the rank is more than 1 and the places is 33?"
},
{
"role": "assistant",
"content": "SELECT \"points\" FROM \"pairs\" WHERE \"rank\">1 AND \"places\"=33;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pairs\" (\n \"rank\" real,\n \"name\" text,\n \"nation\" text,\n \"points\" real,\n \"places\" real\n);\n\nQuestion: what is the highest rank for east germany with points of 128.98 and places less than 70?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"rank\") FROM \"pairs\" WHERE \"nation\"='east germany' AND \"points\"=128.98 AND \"places\"<70;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pairs\" (\n \"rank\" real,\n \"name\" text,\n \"nation\" text,\n \"points\" real,\n \"places\" real\n);\n\nQuestion: what is the points for rank 12?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"points\") FROM \"pairs\" WHERE \"rank\"=12;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_12\" (\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: Which team has an away score of 15.9 (99)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_12\" 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_12\" (\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: Which team has a home team score of 17.12 (114)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_12\" WHERE \"home_team_score\"='17.12 (114)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_14\" (\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: Which home team score has an Away team score of 15.9 (99)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_14\" 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_14\" (\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 with Away team score of 15.9 (99)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_14\" 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_3\" (\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 home team that played an away team who scored 13.11 (89)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_3\" WHERE \"away_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_3\" (\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: How much did the away team Carlton score when the crowd was larger than 19,000?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_3\" WHERE \"crowd\">'19,000' AND \"away_team\"='carlton';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_vancouver_canucks_draft_picks\" (\n \"rd_num\" real,\n \"pick_num\" real,\n \"player\" text,\n \"team_league\" text,\n \"reg_gp\" real,\n \"pl_gp\" real\n);\n\nQuestion: What is the average PI GP when the pick is smaller tha 70 and the reg GP is 97?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"pl_gp\") FROM \"list_of_vancouver_canucks_draft_picks\" WHERE \"reg_gp\"=97 AND \"pick_num\"<70;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tamazight_schwa_epenthesis\" (\n \"environment\" text,\n \"realization\" text,\n \"example\" text,\n \"pronunciation\" text,\n \"gloss\" text\n);\n\nQuestion: Name the gloss for [\u03c7d\u0259m]"
},
{
"role": "assistant",
"content": "SELECT \"gloss\" FROM \"tamazight_schwa_epenthesis\" WHERE \"pronunciation\"='[\u03c7d\u0259m]';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tamazight_schwa_epenthesis\" (\n \"environment\" text,\n \"realization\" text,\n \"example\" text,\n \"pronunciation\" text,\n \"gloss\" text\n);\n\nQuestion: Name the realization for 'to be, to do'"
},
{
"role": "assistant",
"content": "SELECT \"realization\" FROM \"tamazight_schwa_epenthesis\" WHERE \"gloss\"='''to be, to do''';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_11\" (\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 Crowd number for the Away team whose score is 14.18 (102)?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"crowd\") FROM \"round_11\" WHERE \"away_team_score\"='14.18 (102)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pairs\" (\n \"rank\" real,\n \"name\" text,\n \"nation\" text,\n \"points\" real,\n \"places\" real\n);\n\nQuestion: What is the lowest number of places for Sherri Baier / Robin Cowan when ranked lower than 1?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"places\") FROM \"pairs\" WHERE \"name\"='sherri baier / robin cowan' AND \"rank\"<1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nintendo_ds\" (\n \"name\" text,\n \"current_version\" text,\n \"system\" text,\n \"platform\" text,\n \"license\" text\n);\n\nQuestion: What platform is nds4droid on for the nintendo ds?"
},
{
"role": "assistant",
"content": "SELECT \"platform\" FROM \"nintendo_ds\" WHERE \"system\"='nintendo ds' AND \"name\"='nds4droid';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nintendo_ds\" (\n \"name\" text,\n \"current_version\" text,\n \"system\" text,\n \"platform\" text,\n \"license\" text\n);\n\nQuestion: Who has a license of proprietary (available on inquiry)?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"nintendo_ds\" WHERE \"license\"='proprietary (available on inquiry)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nintendo_ds\" (\n \"name\" text,\n \"current_version\" text,\n \"system\" text,\n \"platform\" text,\n \"license\" text\n);\n\nQuestion: What platform is nds4droid on for the nintendo ds with a license of gpl v2?"
},
{
"role": "assistant",
"content": "SELECT \"platform\" FROM \"nintendo_ds\" WHERE \"system\"='nintendo ds' AND \"license\"='gpl v2' AND \"name\"='nds4droid';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nintendo_ds\" (\n \"name\" text,\n \"current_version\" text,\n \"system\" text,\n \"platform\" text,\n \"license\" text\n);\n\nQuestion: What system has a current version of 1.4e?"
},
{
"role": "assistant",
"content": "SELECT \"system\" FROM \"nintendo_ds\" WHERE \"current_version\"='1.4e';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nintendo_ds\" (\n \"name\" text,\n \"current_version\" text,\n \"system\" text,\n \"platform\" text,\n \"license\" text\n);\n\nQuestion: Who has a licence of gpl v2 and a current version of 0.9.9?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"nintendo_ds\" WHERE \"license\"='gpl v2' AND \"current_version\"='0.9.9';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performance_progression\" (\n \"discipline\" text,\n \"season\" real,\n \"performance\" text,\n \"place\" text,\n \"date\" text\n);\n\nQuestion: What was the performance length of the 1999 season in bydgoszcz, poland?"
},
{
"role": "assistant",
"content": "SELECT \"performance\" FROM \"performance_progression\" WHERE \"season\"=1999 AND \"place\"='bydgoszcz, poland';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performance_progression\" (\n \"discipline\" text,\n \"season\" real,\n \"performance\" text,\n \"place\" text,\n \"date\" text\n);\n\nQuestion: What were the performance lengths in the 3000 m events in and after 2003?"
},
{
"role": "assistant",
"content": "SELECT \"performance\" FROM \"performance_progression\" WHERE \"season\">2003 AND \"discipline\"='3000 m';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performance_progression\" (\n \"discipline\" text,\n \"season\" real,\n \"performance\" text,\n \"place\" text,\n \"date\" text\n);\n\nQuestion: How many seasons took place in santiago de chile, chile?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"season\") FROM \"performance_progression\" WHERE \"place\"='santiago de chile, chile';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performance_progression\" (\n \"discipline\" text,\n \"season\" real,\n \"performance\" text,\n \"place\" text,\n \"date\" text\n);\n\nQuestion: During which Season did the may 11, 2002 event take place?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"performance_progression\" WHERE \"date\"='may 11, 2002';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the average round for players from california?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"round\") FROM \"nfl_draft\" WHERE \"college\"='california';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: What's the Nationality of Round 8 Vancouver Canucks NHL Team of Swift Current Broncos (WHL)?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"draft_picks\" WHERE \"nhl_team\"='vancouver canucks' AND \"college_junior_club_team_league\"='swift current broncos (whl)' AND \"round\"=8;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_11\" (\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: If the Away team score was 14.10 (94), which Date was that?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_11\" WHERE \"away_team_score\"='14.10 (94)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_11\" (\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 the Home team score was 20.16 (136), which Away team were they playing?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_11\" WHERE \"home_team_score\"='20.16 (136)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_11\" (\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: If the Home team score was 12.10 (82) on the Date of 8 june 1981, which Home team was playing?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_11\" WHERE \"date\"='8 june 1981' AND \"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 \"round_11\" (\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 the Away team of essendon was playing, what was the Home team's score?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_11\" 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_11\" (\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: For the Venue of western oval, what's the Away team playing?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_11\" 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_6\" (\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: Which venue has a Home team score of 9.12 (66)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_6\" WHERE \"home_team_score\"='9.12 (66)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_6\" (\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: How large is the crowd with an Away team score of 7.13 (55)?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"crowd\") FROM \"round_6\" WHERE \"away_team_score\"='7.13 (55)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_6\" (\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: Which venue has an Away team score of 12.11 (83)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_6\" WHERE \"away_team_score\"='12.11 (83)';"
}
] |
[
{
"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 \"home_away_game\" text,\n \"result\" text\n);\n\nQuestion: Who was the opponent on week 7?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"week\"='7';"
}
] |
[
{
"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 \"home_away_game\" text,\n \"result\" text\n);\n\nQuestion: Who was the opponent on week 5?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"week\"='5';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"march\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Who was the leading scorer of the game that had a score of 107\u201397?"
},
{
"role": "assistant",
"content": "SELECT \"leading_scorer\" FROM \"march\" WHERE \"score\"='107\u201397';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"march\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Who was the visiting team when the Suns were the home team?"
},
{
"role": "assistant",
"content": "SELECT \"visitor\" FROM \"march\" WHERE \"home\"='suns';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"coaching_record_vs_other_teams\" (\n \"team\" text,\n \"wins\" real,\n \"losses\" real,\n \"ties\" real,\n \"win_pct\" text\n);\n\nQuestion: What is the average number of ties for the Detroit Lions team when they have fewer than 5 wins, fewer than 3 losses, and a win percentage of 0.800?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"ties\") FROM \"coaching_record_vs_other_teams\" WHERE \"losses\"<3 AND \"wins\"<5 AND \"win_pct\"='0.800' AND \"team\"='detroit lions';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"titles_5\" (\n \"year\" real,\n \"championship\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: What is the most recent year in which the score was 4\u20136, 6\u20133, 7\u20135?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"year\") FROM \"titles_5\" WHERE \"score\"='4\u20136, 6\u20133, 7\u20135';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2006_boys_team\" (\n \"player\" text,\n \"height\" text,\n \"school\" text,\n \"hometown\" text,\n \"college\" text,\n \"nba_draft\" text\n);\n\nQuestion: Which player has a height of 6-7?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"2006_boys_team\" WHERE \"height\"='6-7';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2006_boys_team\" (\n \"player\" text,\n \"height\" text,\n \"school\" text,\n \"hometown\" text,\n \"college\" text,\n \"nba_draft\" text\n);\n\nQuestion: What is the NBA draft result of the player from Washington, DC?"
},
{
"role": "assistant",
"content": "SELECT \"nba_draft\" FROM \"2006_boys_team\" WHERE \"hometown\"='washington, dc';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2006_boys_team\" (\n \"player\" text,\n \"height\" text,\n \"school\" text,\n \"hometown\" text,\n \"college\" text,\n \"nba_draft\" text\n);\n\nQuestion: What is the NBA draft result of the player from the College of Kansas?"
},
{
"role": "assistant",
"content": "SELECT \"nba_draft\" FROM \"2006_boys_team\" WHERE \"college\"='kansas';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2006_boys_team\" (\n \"player\" text,\n \"height\" text,\n \"school\" text,\n \"hometown\" text,\n \"college\" text,\n \"nba_draft\" text\n);\n\nQuestion: Who is the player from La Costa Canyon High School?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"2006_boys_team\" WHERE \"school\"='la costa canyon high school';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2006_boys_team\" (\n \"player\" text,\n \"height\" text,\n \"school\" text,\n \"hometown\" text,\n \"college\" text,\n \"nba_draft\" text\n);\n\nQuestion: How tall is the player from Nacogdoches High School?"
},
{
"role": "assistant",
"content": "SELECT \"height\" FROM \"2006_boys_team\" WHERE \"school\"='nacogdoches high school';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2006_boys_team\" (\n \"player\" text,\n \"height\" text,\n \"school\" text,\n \"hometown\" text,\n \"college\" text,\n \"nba_draft\" text\n);\n\nQuestion: What is the school of the player from Dallas, TX?"
},
{
"role": "assistant",
"content": "SELECT \"school\" FROM \"2006_boys_team\" WHERE \"hometown\"='dallas, tx';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1970_1979\" (\n \"year\" text,\n \"competition\" text,\n \"date\" text,\n \"location\" text,\n \"result\" text\n);\n\nQuestion: What is the result for world group, consolation round?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"1970_1979\" WHERE \"competition\"='world group, consolation round';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wide_receivers\" (\n \"player\" text,\n \"rec\" real,\n \"yards\" real,\n \"avg\" real,\n \"td_s\" real,\n \"long\" real\n);\n\nQuestion: What was the long of Trandon Harvey who had an greater than 8 average, more than 3 rec., and more than 28 TD's?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"long\") FROM \"wide_receivers\" WHERE \"avg\">8 AND \"rec\">3 AND \"player\"='trandon harvey' AND \"td_s\">28;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fifth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" real\n);\n\nQuestion: How many attended tie number 1?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"attendance\") FROM \"fifth_round_proper\" WHERE \"tie_no\"='1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fifth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" real\n);\n\nQuestion: How many attended tie number 3?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"attendance\") FROM \"fifth_round_proper\" WHERE \"tie_no\"='3';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.