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 \"personnel_and_kits\" (\n \"team\" text,\n \"manager\" text,\n \"captain\" text,\n \"kit_maker\" text,\n \"shirt_sponsor\" text\n);\n\nQuestion: Which kit maker does Aston Villa use?"
},
{
"role": "assistant",
"content": "SELECT \"kit_maker\" FROM \"personnel_and_kits\" WHERE \"team\"='aston villa';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"personnel_and_kits\" (\n \"team\" text,\n \"manager\" text,\n \"captain\" text,\n \"kit_maker\" text,\n \"shirt_sponsor\" text\n);\n\nQuestion: Who captains Portsmouth?"
},
{
"role": "assistant",
"content": "SELECT \"captain\" FROM \"personnel_and_kits\" WHERE \"team\"='portsmouth';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_some_notable_incidents_involving\" (\n \"year\" real,\n \"event\" text,\n \"location\" text,\n \"perpetrator_s\" text,\n \"deaths\" text\n);\n\nQuestion: What bombing happened in Brighton, UK?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"list_of_some_notable_incidents_involving\" WHERE \"location\"='brighton, uk';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"papa_bouba_diop_international_goals\" (\n \"goal\" real,\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What result had a score of 3\u20130?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"papa_bouba_diop_international_goals\" WHERE \"score\"='3\u20130';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"papa_bouba_diop_international_goals\" (\n \"goal\" real,\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: For the venue of suwon world cup stadium , suwon , south korea and a Score of 3\u20130 what is the result?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"papa_bouba_diop_international_goals\" WHERE \"venue\"='suwon world cup stadium , suwon , south korea' AND \"score\"='3\u20130';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"papa_bouba_diop_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 top goal for the result of 2\u20133?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"goal\") FROM \"papa_bouba_diop_international_goals\" WHERE \"result\"='2\u20133';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"event_records\" (\n \"grade\" text,\n \"team\" text,\n \"town\" text,\n \"time\" text,\n \"year\" real\n);\n\nQuestion: When was the time of 12:49:08 first set?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"event_records\" WHERE \"time\"='12:49:08';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"attendance\" text\n);\n\nQuestion: What was the date when the attendance was 77,918?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"regular_season\" WHERE \"attendance\"='77,918';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"attendance\" text\n);\n\nQuestion: What was the attendance of the game played in the Georgia Dome?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"regular_season\" WHERE \"game_site\"='georgia dome';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"attendance\" text\n);\n\nQuestion: What was the date when the attendance was 73,529?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"regular_season\" WHERE \"attendance\"='73,529';"
}
] |
[
{
"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 away team played at Western Oval?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_14\" 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_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 away team scored 18.14 (122)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_14\" WHERE \"away_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_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 away team scored 9.15 (69)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_14\" WHERE \"away_team_score\"='9.15 (69)';"
}
] |
[
{
"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 was the smallest crowd when Footscray played at home?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"crowd\") FROM \"round_14\" 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_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 was the away team when the home team scored 9.8 (62)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_14\" WHERE \"home_team_score\"='9.8 (62)';"
}
] |
[
{
"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 was the game held when the away team scored 10.12 (72)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_11\" WHERE \"away_team_score\"='10.12 (72)';"
}
] |
[
{
"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 was the home team's score at the game where the away team scored 13.6 (84)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_11\" WHERE \"away_team_score\"='13.6 (84)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_11_1_10\" (\n \"outcome\" text,\n \"date\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: What was the outcome when she partnered with mashona washington?"
},
{
"role": "assistant",
"content": "SELECT \"outcome\" FROM \"doubles_11_1_10\" WHERE \"partner\"='mashona washington';"
}
] |
[
{
"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 listed crowd at junction oval?"
},
{
"role": "assistant",
"content": "SELECT \"crowd\" FROM \"round_9\" 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_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 sum of crowd(s) when north melbourne is away?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"crowd\") FROM \"round_9\" WHERE \"away_team\"='north 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 day is south melbourne away?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_9\" WHERE \"away_team\"='south melbourne';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_8\" (\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 home team scored 16.14 (110)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_8\" WHERE \"home_team_score\"='16.14 (110)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_8\" (\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 home team's score when the away team scored 13.14 (92)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_8\" 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 \"round_8\" (\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 where the away team scored 10.13 (73) and there was a crowd over 24,119?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_8\" WHERE \"crowd\">'24,119' AND \"away_team_score\"='10.13 (73)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goals_for_senior_national_team\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What was the score of the competition on 23 November 2003?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"goals_for_senior_national_team\" WHERE \"date\"='23 november 2003';"
}
] |
[
{
"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: Where did Richmond play as an away team?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_14\" WHERE \"away_team\"='richmond';"
}
] |
[
{
"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: When did South Melbourne play at home?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_14\" WHERE \"home_team\"='south melbourne';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"provinces\" (\n \"province\" text,\n \"inhabitants\" real,\n \"president\" text,\n \"party\" text,\n \"election\" real\n);\n\nQuestion: What is the average election for vicenza province with the liga veneta party?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"election\") FROM \"provinces\" WHERE \"party\"='liga veneta' AND \"province\"='vicenza';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"provinces\" (\n \"province\" text,\n \"inhabitants\" real,\n \"president\" text,\n \"party\" text,\n \"election\" real\n);\n\nQuestion: What is the sum of elections in vicenza?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"election\") FROM \"provinces\" WHERE \"province\"='vicenza';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"provinces\" (\n \"province\" text,\n \"inhabitants\" real,\n \"president\" text,\n \"party\" text,\n \"election\" real\n);\n\nQuestion: What province has an election after 2009?"
},
{
"role": "assistant",
"content": "SELECT \"province\" FROM \"provinces\" WHERE \"election\">2009;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_details\" (\n \"country\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalogue\" text\n);\n\nQuestion: What format does Japan use?"
},
{
"role": "assistant",
"content": "SELECT \"format\" FROM \"release_details\" WHERE \"country\"='japan';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_details\" (\n \"country\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalogue\" text\n);\n\nQuestion: What date has a catalogue of 540 3622?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"release_details\" WHERE \"catalogue\"='540 3622';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_details\" (\n \"country\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalogue\" text\n);\n\nQuestion: What format has a catalogue of asw 40362?"
},
{
"role": "assistant",
"content": "SELECT \"format\" FROM \"release_details\" WHERE \"catalogue\"='asw 40362';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_details\" (\n \"country\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalogue\" text\n);\n\nQuestion: What date has a catalogue of asw 40362?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"release_details\" WHERE \"catalogue\"='asw 40362';"
}
] |
[
{
"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: On what Date is the Crowd larger than 17,000?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_12\" WHERE \"crowd\">'17,000';"
}
] |
[
{
"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: What Home team has an Away team score of 8.9 (57)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_12\" WHERE \"away_team_score\"='8.9 (57)';"
}
] |
[
{
"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: What is the Home team score when the Away team score is 17.16 (118)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_12\" WHERE \"away_team_score\"='17.16 (118)';"
}
] |
[
{
"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 Away team has the Home team of Carlton?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_12\" WHERE \"home_team\"='carlton';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_5\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What was the score of the Jeff Tarango game?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"doubles_5\" WHERE \"partner\"='jeff tarango';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_7\" (\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 Collingwood play ae the away team?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_7\" WHERE \"away_team\"='collingwood';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_7\" (\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 when there was more than 27,000 in attendance?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_7\" WHERE \"crowd\">'27,000';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_7\" (\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 Hawthorn play as the home team?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_7\" WHERE \"home_team\"='hawthorn';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"leading_point_scorers\" (\n \"player\" text,\n \"span\" text,\n \"start\" real,\n \"tries\" real,\n \"conv\" real,\n \"pens\" real,\n \"drop\" real\n);\n\nQuestion: In 1990-2005 what is the lowest Start with Convs smaller than 2?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"start\") FROM \"leading_point_scorers\" WHERE \"span\"='1990-2005' AND \"conv\"<2;"
}
] |
[
{
"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 away team when the score is 6.9 (45)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_14\" WHERE \"away_team_score\"='6.9 (45)';"
}
] |
[
{
"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 total of the crowd when the home team is footscray?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"crowd\") FROM \"round_14\" 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_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 away team score when the away team is Essendon?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_14\" 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_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 crowd total when the home score is 5.9 (39)?"
},
{
"role": "assistant",
"content": "SELECT \"crowd\" FROM \"round_14\" WHERE \"home_team_score\"='5.9 (39)';"
}
] |
[
{
"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: How many weeks ended in a result of L 20-10?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"week\") FROM \"schedule\" WHERE \"result\"='l 20-10';"
}
] |
[
{
"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: What was the attendance in week 6?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"week\"=6;"
}
] |
[
{
"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 in the game that had an attendance of 60,066?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"attendance\"='60,066';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"positional_or_automatic\" text,\n \"opponents\" text,\n \"suits\" text,\n \"material_or_non_material\" text,\n \"count_rectified\" text\n);\n\nQuestion: What is the designation of material or non-material for either positional or automatic with no rectified count and either opponent?"
},
{
"role": "assistant",
"content": "SELECT \"material_or_non_material\" FROM \"classification\" WHERE \"positional_or_automatic\"='either' AND \"count_rectified\"='no' AND \"opponents\"='either';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"positional_or_automatic\" text,\n \"opponents\" text,\n \"suits\" text,\n \"material_or_non_material\" text,\n \"count_rectified\" text\n);\n\nQuestion: What is the value for positional opponents with no material or non-material, and 3 suits?"
},
{
"role": "assistant",
"content": "SELECT \"opponents\" FROM \"classification\" WHERE \"positional_or_automatic\"='positional' AND \"material_or_non_material\"='no' AND \"suits\"='3';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"positional_or_automatic\" text,\n \"opponents\" text,\n \"suits\" text,\n \"material_or_non_material\" text,\n \"count_rectified\" text\n);\n\nQuestion: Is it material or non-material when there are 2 suits for either opponent?"
},
{
"role": "assistant",
"content": "SELECT \"material_or_non_material\" FROM \"classification\" WHERE \"suits\"='2' AND \"opponents\"='either';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"positional_or_automatic\" text,\n \"opponents\" text,\n \"suits\" text,\n \"material_or_non_material\" text,\n \"count_rectified\" text\n);\n\nQuestion: Which suits have no material or non-material, either opponent, and are positional?"
},
{
"role": "assistant",
"content": "SELECT \"suits\" FROM \"classification\" WHERE \"material_or_non_material\"='no' AND \"opponents\"='either' AND \"positional_or_automatic\"='positional';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"positional_or_automatic\" text,\n \"opponents\" text,\n \"suits\" text,\n \"material_or_non_material\" text,\n \"count_rectified\" text\n);\n\nQuestion: Is the count rectified for single opponents, either positional or automatic, and no material or non-material?"
},
{
"role": "assistant",
"content": "SELECT \"count_rectified\" FROM \"classification\" WHERE \"opponents\"='single' AND \"positional_or_automatic\"='either' AND \"material_or_non_material\"='no';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"finalised_league_table\" (\n \"team\" text,\n \"game\" real,\n \"draw\" real,\n \"loss\" real,\n \"goal_gain\" real,\n \"goal_loss\" real,\n \"goal_diff\" real,\n \"point\" real\n);\n\nQuestion: How many points did Happy Valley score before game 14?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"point\") FROM \"finalised_league_table\" WHERE \"team\"='happy valley' AND \"game\"<14;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"finalised_league_table\" (\n \"team\" text,\n \"game\" real,\n \"draw\" real,\n \"loss\" real,\n \"goal_gain\" real,\n \"goal_loss\" real,\n \"goal_diff\" real,\n \"point\" real\n);\n\nQuestion: How many points were there in the game with a goal loss of 16 and a goal diff less than 26 after game 14?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"point\") FROM \"finalised_league_table\" WHERE \"goal_loss\"=16 AND \"goal_diff\"<26 AND \"game\">14;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"finalised_league_table\" (\n \"team\" text,\n \"game\" real,\n \"draw\" real,\n \"loss\" real,\n \"goal_gain\" real,\n \"goal_loss\" real,\n \"goal_diff\" real,\n \"point\" real\n);\n\nQuestion: How many draws did the game after game 14 with goal gain 17 have?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"draw\") FROM \"finalised_league_table\" WHERE \"goal_gain\"=17 AND \"game\">14;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"finalised_league_table\" (\n \"team\" text,\n \"game\" real,\n \"draw\" real,\n \"loss\" real,\n \"goal_gain\" real,\n \"goal_loss\" real,\n \"goal_diff\" real,\n \"point\" real\n);\n\nQuestion: How many total draws were there with a less than 8 loss, more than 30 points, and a goal diff larger than 26?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"draw\") FROM \"finalised_league_table\" WHERE \"loss\"<8 AND \"point\">30 AND \"goal_diff\">26;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"finalised_league_table\" (\n \"team\" text,\n \"game\" real,\n \"draw\" real,\n \"loss\" real,\n \"goal_gain\" real,\n \"goal_loss\" real,\n \"goal_diff\" real,\n \"point\" real\n);\n\nQuestion: What is the highest loss before game 14?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"loss\") FROM \"finalised_league_table\" WHERE \"game\"<14;"
}
] |
[
{
"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: How many average points did the player with a time/retired of +16.789 and have more laps than 68 have?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"points\") FROM \"race\" WHERE \"time_retired\"='+16.789' AND \"laps\">68;"
}
] |
[
{
"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: How many average points did the team Minardi Team USA have when there was a grid 3 and more laps than 68?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"points\") FROM \"race\" WHERE \"team\"='minardi team usa' AND \"grid\"=3 AND \"laps\">68;"
}
] |
[
{
"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: Which was the highest crowd drawn by an Away team in Richmond?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"crowd\") FROM \"round_9\" WHERE \"away_team\"='richmond';"
}
] |
[
{
"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: Which home team has a venue of Arden Street Oval?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_9\" 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_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: Which away team has a venue of Arden Street Oval?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_9\" 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 \"doubles_performance_timeline\" (\n \"tournament\" text,\n \"2007\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text\n);\n\nQuestion: What is the value for 2011 corresponding to a 2007 value of 1r?"
},
{
"role": "assistant",
"content": "SELECT \"2011\" FROM \"doubles_performance_timeline\" WHERE \"2007\"='1r';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_performance_timeline\" (\n \"tournament\" text,\n \"2007\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text\n);\n\nQuestion: What value in 2013 corresponds to Grand Slam Tournaments in 2012?"
},
{
"role": "assistant",
"content": "SELECT \"2013\" FROM \"doubles_performance_timeline\" WHERE \"2012\"='grand slam tournaments';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_performance_timeline\" (\n \"tournament\" text,\n \"2007\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text\n);\n\nQuestion: What is the 2012 value when the 2011 and 2007 values are 1R?"
},
{
"role": "assistant",
"content": "SELECT \"2012\" FROM \"doubles_performance_timeline\" WHERE \"2011\"='1r' AND \"2007\"='1r';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_performance_timeline\" (\n \"tournament\" text,\n \"2007\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text\n);\n\nQuestion: What value for 2013 corresponds to the US Open Tournament?"
},
{
"role": "assistant",
"content": "SELECT \"2013\" FROM \"doubles_performance_timeline\" WHERE \"tournament\"='us open';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"team_nickname\" text\n);\n\nQuestion: The school nicknamed the wildcats has what sum of enrollment?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"enrollment\") FROM \"current_members\" WHERE \"team_nickname\"='wildcats';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"team_nickname\" text\n);\n\nQuestion: What is the Founded year of the school located in Paul Smiths, New York?"
},
{
"role": "assistant",
"content": "SELECT \"founded\" FROM \"current_members\" WHERE \"location\"='paul smiths, new york';"
}
] |
[
{
"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 home side scored 9.4 (58)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_11\" WHERE \"home_team_score\"='9.4 (58)';"
}
] |
[
{
"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 was fitzroy's away side score?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_11\" 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 \"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 away team's score when the home side scores 9.4 (58)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_11\" WHERE \"home_team_score\"='9.4 (58)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2002_new_york_jets_season\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What player attended UAB college?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"2002_new_york_jets_season\" WHERE \"college\"='uab';"
}
] |
[
{
"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 \"stadium\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What was the score of the game at RIch Stadium?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"stadium\"='rich stadium';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: Who had the best time of 1:32.269?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"qualifying_results\" WHERE \"best\"='1:32.269';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: Who from Conquest Racing had the best time of 1:34.748 in Qual 1?"
},
{
"role": "assistant",
"content": "SELECT \"best\" FROM \"qualifying_results\" WHERE \"team\"='conquest racing' AND \"qual_1\"='1:34.748';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: Who in Qual 2 had the best time of 1:31.327?"
},
{
"role": "assistant",
"content": "SELECT \"qual_2\" FROM \"qualifying_results\" WHERE \"best\"='1:31.327';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: What was Dan Selznick best time?"
},
{
"role": "assistant",
"content": "SELECT \"best\" FROM \"qualifying_results\" WHERE \"name\"='dan selznick';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: What team had 1:34.578 in Qual 2?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"qualifying_results\" WHERE \"qual_2\"='1:34.578';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: Jiang Tengyi is on which team?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"qualifying_results\" WHERE \"name\"='jiang tengyi';"
}
] |
[
{
"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's score when footscray is the away team?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_9\" WHERE \"away_team\"='footscray';"
}
] |
[
{
"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 venue has an Away team score of 8.8 (56)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_9\" WHERE \"away_team_score\"='8.8 (56)';"
}
] |
[
{
"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: Whom is the away team when the Away team score is 23.14 (152)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_9\" WHERE \"away_team_score\"='23.14 (152)';"
}
] |
[
{
"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: Whom is the home team when the home team score is 12.13 (85)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_9\" WHERE \"home_team_score\"='12.13 (85)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What was the rank for czechoslovakia with 1 bronze?"
},
{
"role": "assistant",
"content": "SELECT \"rank\" FROM \"medal_table\" WHERE \"bronze\"=1 AND \"nation\"='czechoslovakia';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: How many bronze medals for the nation with over 9 golds?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"bronze\") FROM \"medal_table\" WHERE \"gold\">9;"
}
] |
[
{
"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 \"result\" text,\n \"goals\" real,\n \"competition\" text\n);\n\nQuestion: What is the average number of goals that occurred in Hong Kong Stadium, Hong Kong?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"goals\") FROM \"international_career\" WHERE \"venue\"='hong kong stadium, hong kong';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"currency_and_central_banks\" (\n \"country\" text,\n \"currency\" text,\n \"value_in_euro\" text,\n \"value_in_usd\" real,\n \"central_bank\" text\n);\n\nQuestion: Which country uses pound sterling with a value higher than 1.33 USD?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"currency_and_central_banks\" WHERE \"value_in_usd\">1.33 AND \"currency\"='pound sterling';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_7\" (\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 the home side scores 13.22 (100)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_7\" WHERE \"home_team_score\"='13.22 (100)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_7\" (\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 venue features carlton at home?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_7\" WHERE \"home_team\"='carlton';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_7\" (\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 venue features fitzroy as the away side?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_7\" 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 \"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 when the home team scored 17.14 (116)?"
},
{
"role": "assistant",
"content": "SELECT \"crowd\" FROM \"round_2\" WHERE \"home_team_score\"='17.14 (116)';"
}
] |
[
{
"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 smallest crowd that Melbourne played for at home?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"crowd\") FROM \"round_2\" 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_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 home teams score when the away team scored 7.5 (47)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_2\" WHERE \"away_team_score\"='7.5 (47)';"
}
] |
[
{
"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 home teams score at Victoria Park?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_2\" WHERE \"venue\"='victoria park';"
}
] |
[
{
"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 away team against which the home team scored 10.14 (74)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_2\" WHERE \"home_team_score\"='10.14 (74)';"
}
] |
[
{
"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 the away team of Richmond?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_2\" WHERE \"away_team\"='richmond';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"batting_averages\" (\n \"player\" text,\n \"matches\" real,\n \"inns\" real,\n \"runs\" real,\n \"high_score\" real,\n \"average\" real,\n \"catches\" real,\n \"stump\" real\n);\n\nQuestion: What is the high score for the player with 0 stumps, 4 catches, more than 14 inns and an average smaller than 56.1?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"high_score\") FROM \"batting_averages\" WHERE \"stump\"=0 AND \"catches\"=4 AND \"average\"<56.1 AND \"inns\">14;"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.