chat_prompt stringlengths 438 1.53k |
|---|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_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: On what date is Footscray the away team?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_3\" 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_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 was the crowd population for Footscray as an away team?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"crowd\") FROM \"round_3\" 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_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: On what date was there both a crowd larger than 16,570 and the away team was Footscray?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_3\" WHERE \"crowd\">'16,570' AND \"away_team\"='footscray';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"record_by_conference\" (\n \"conference\" text,\n \"num_of_bids\" real,\n \"record\" text,\n \"win_pct\" text,\n \"round_of_32\" text,\n \"sweet_sixteen\" text,\n \"elite_eight\" text,\n \"final_four\" text,\n \"championship_game\" text\n);\n\nQuestion: How many bids were there for the .500 win percentage in the Ohio Valley conference?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"num_of_bids\") FROM \"record_by_conference\" WHERE \"win_pct\"='.500' AND \"conference\"='ohio valley';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"record_by_conference\" (\n \"conference\" text,\n \"num_of_bids\" real,\n \"record\" text,\n \"win_pct\" text,\n \"round_of_32\" text,\n \"sweet_sixteen\" text,\n \"elite_eight\" text,\n \"final_four\" text,\n \"championship_game\" text\n);\n\nQuestion: What is the Championship Game when the Final Four is 1 and the conference is American South?"
},
{
"role": "assistant",
"content": "SELECT \"championship_game\" FROM \"record_by_conference\" WHERE \"final_four\"='1' AND \"conference\"='american south';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"record_by_conference\" (\n \"conference\" text,\n \"num_of_bids\" real,\n \"record\" text,\n \"win_pct\" text,\n \"round_of_32\" text,\n \"sweet_sixteen\" text,\n \"elite_eight\" text,\n \"final_four\" text,\n \"championship_game\" text\n);\n\nQuestion: What is the Final Four with a win percentage of .750?"
},
{
"role": "assistant",
"content": "SELECT \"final_four\" FROM \"record_by_conference\" WHERE \"win_pct\"='.750';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_18\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the date of the game at the Arden Street Oval?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_18\" WHERE \"venue\"='arden street oval';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_18\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the date where the home team scores 8.7 (55)?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_18\" WHERE \"home_team_score\"='8.7 (55)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_5\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the date of the game when the venue is Kardinia Park?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_5\" WHERE \"venue\"='kardinia park';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_5\" (\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 away team score is 4.8 (32)?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"crowd\") FROM \"round_5\" WHERE \"away_team_score\"='4.8 (32)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_5\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the date of the game when the home team score is 11.11 (77)?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_5\" WHERE \"home_team_score\"='11.11 (77)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which away team played against the home team of St Kilda?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_1\" WHERE \"home_team\"='st kilda';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which home team competed against the away team of Melbourne?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_1\" WHERE \"away_team\"='melbourne';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which away team resulted in a 15.14 (104) score for the home team?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_1\" WHERE \"home_team_score\"='15.14 (104)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which venue hosted an away team with a score of 9.12 (66)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_1\" WHERE \"away_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_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What venue hosted a home team with a score of 6.12 (48)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_1\" WHERE \"home_team_score\"='6.12 (48)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff\" text,\n \"game_site\" text,\n \"record\" text,\n \"attendance\" text\n);\n\nQuestion: What was the result of week 1 and the opponent was bye?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"week\"='1' AND \"opponent\"='bye';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff\" text,\n \"game_site\" text,\n \"record\" text,\n \"attendance\" text\n);\n\nQuestion: What is the site of the game with a Record of 6-2?"
},
{
"role": "assistant",
"content": "SELECT \"game_site\" FROM \"schedule\" WHERE \"record\"='6-2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff\" text,\n \"game_site\" text,\n \"record\" text,\n \"attendance\" text\n);\n\nQuestion: What week has a Record of 12-2?"
},
{
"role": "assistant",
"content": "SELECT \"week\" FROM \"schedule\" WHERE \"record\"='12-2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"buildings_above_140m\" (\n \"rank\" text,\n \"name\" text,\n \"city\" text,\n \"height_in_m_ft\" text,\n \"floors\" real,\n \"year_built\" real\n);\n\nQuestion: What city has Sky Tower?"
},
{
"role": "assistant",
"content": "SELECT \"city\" FROM \"buildings_above_140m\" WHERE \"name\"='sky tower';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"buildings_above_140m\" (\n \"rank\" text,\n \"name\" text,\n \"city\" text,\n \"height_in_m_ft\" text,\n \"floors\" real,\n \"year_built\" real\n);\n\nQuestion: What is the name of a building in Courbevoie built before 1973?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"buildings_above_140m\" WHERE \"year_built\"<1973 AND \"city\"='courbevoie';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_4\" (\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 away team at Lake Oval?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_4\" WHERE \"venue\"='lake oval';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_4\" (\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 score for the game where Hawthorn is the home team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_4\" 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 \"round_4\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who is the home team that scored 14.19 (103)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_4\" WHERE \"home_team_score\"='14.19 (103)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_4\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the date of the game where Essendon is the away team?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_4\" WHERE \"away_team\"='essendon';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the average crowd size when the home side scores 4.10 (34)?"
},
{
"role": "assistant",
"content": "SELECT \"crowd\" FROM \"round_10\" WHERE \"home_team_score\"='4.10 (34)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the home team's score when the away team is south melbourne?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_10\" 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_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What venue featured the home side of st kilda?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_10\" WHERE \"home_team\"='st kilda';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"timeline_of_tallest_buildings\" (\n \"name\" text,\n \"city\" text,\n \"years_as_tallest\" text,\n \"metres\" real,\n \"feet\" real,\n \"floors\" real\n);\n\nQuestion: How many metres tall is the building that is larger than 850 feet tall?"
},
{
"role": "assistant",
"content": "SELECT \"metres\" FROM \"timeline_of_tallest_buildings\" WHERE \"feet\">850;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was Geelong's score when they were the home team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_15\" WHERE \"home_team\"='geelong';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Where was the game when Collingwood was the home team?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_15\" 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_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who was the away team that scored 8.12 (60)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_15\" WHERE \"away_team_score\"='8.12 (60)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"rebounds\" (\n \"rank\" real,\n \"player\" text,\n \"years\" text,\n \"games\" real,\n \"reb_avg\" real,\n \"total_rebounds\" real\n);\n\nQuestion: What was Peter Woolfolk's Total Rebound average?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"total_rebounds\") FROM \"rebounds\" WHERE \"player\"='peter woolfolk';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"exhibition_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What was week 3 score?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"exhibition_schedule\" WHERE \"week\"=3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"date\" text,\n \"result\" text,\n \"score\" text,\n \"stadium\" text,\n \"city\" text,\n \"crowd\" real\n);\n\nQuestion: What city had a crowd larger than 11,346 and score of 24-16?"
},
{
"role": "assistant",
"content": "SELECT \"city\" FROM \"round_1\" WHERE \"crowd\">'11,346' AND \"score\"='24-16';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"date\" text,\n \"result\" text,\n \"score\" text,\n \"stadium\" text,\n \"city\" text,\n \"crowd\" real\n);\n\nQuestion: What is the result of the game at Odsal Stadium?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"round_1\" WHERE \"stadium\"='odsal stadium';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wins_6\" (\n \"year\" real,\n \"championship\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: Which championship had a margin of 10 strokes?"
},
{
"role": "assistant",
"content": "SELECT \"championship\" FROM \"wins_6\" WHERE \"margin\"='10 strokes';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wins_6\" (\n \"year\" real,\n \"championship\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: Which runner-up player(s) had a margin of 10 strokes?"
},
{
"role": "assistant",
"content": "SELECT \"runner_s_up\" FROM \"wins_6\" WHERE \"margin\"='10 strokes';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wins_6\" (\n \"year\" real,\n \"championship\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What was the most recent year that Kathy Ahern was a runner-up?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"year\") FROM \"wins_6\" WHERE \"runner_s_up\"='kathy ahern';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"windows_nt\" (\n \"name\" text,\n \"release_date\" text,\n \"rtm_build\" text,\n \"current_version\" text,\n \"status_support\" text,\n \"license\" text,\n \"based_on_kernel\" text,\n \"supported_architectures\" text,\n \"os_type\" text\n);\n\nQuestion: What is the RTM build of the Windows Home Server 2011?"
},
{
"role": "assistant",
"content": "SELECT \"rtm_build\" FROM \"windows_nt\" WHERE \"name\"='windows home server 2011';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"windows_nt\" (\n \"name\" text,\n \"release_date\" text,\n \"rtm_build\" text,\n \"current_version\" text,\n \"status_support\" text,\n \"license\" text,\n \"based_on_kernel\" text,\n \"supported_architectures\" text,\n \"os_type\" text\n);\n\nQuestion: What is the current version of windows 8 with an RTM build of 9200?"
},
{
"role": "assistant",
"content": "SELECT \"current_version\" FROM \"windows_nt\" WHERE \"rtm_build\"='9200' AND \"name\"='windows 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: What home team scored 14.14 (98)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_11\" WHERE \"home_team_score\"='14.14 (98)';"
}
] |
[
{
"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 that played Geelong?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_11\" WHERE \"away_team\"='geelong';"
}
] |
[
{
"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: At what venue did the home team score 12.10 (82)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_11\" WHERE \"home_team_score\"='12.10 (82)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: How many rounds were fought with opponent Kevin Roddy?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='kevin roddy';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_by_game_results\" (\n \"week\" text,\n \"opponent\" text,\n \"result\" text,\n \"stadium\" text,\n \"record\" text,\n \"attendance\" text\n);\n\nQuestion: What was the score when attendance was 19,887?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_by_game_results\" WHERE \"attendance\"='19,887';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_by_game_results\" (\n \"week\" text,\n \"opponent\" text,\n \"result\" text,\n \"stadium\" text,\n \"record\" text,\n \"attendance\" text\n);\n\nQuestion: What week was the Bye attendance week?"
},
{
"role": "assistant",
"content": "SELECT \"week\" FROM \"game_by_game_results\" WHERE \"attendance\"='bye';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_by_game_results\" (\n \"week\" text,\n \"opponent\" text,\n \"result\" text,\n \"stadium\" text,\n \"record\" text,\n \"attendance\" text\n);\n\nQuestion: Who won when the Patriots played the Denver Broncos?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_by_game_results\" WHERE \"opponent\"='denver broncos';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_by_game_results\" (\n \"week\" text,\n \"opponent\" text,\n \"result\" text,\n \"stadium\" text,\n \"record\" text,\n \"attendance\" text\n);\n\nQuestion: Who won when the attendance was 8,000?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_by_game_results\" WHERE \"attendance\"='8,000';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television\" (\n \"band_ch\" real,\n \"call\" text,\n \"city\" text,\n \"owner\" text,\n \"operator\" text,\n \"virt_ch\" real,\n \"nickname\" text,\n \"programming\" text\n);\n\nQuestion: What channel has an operator of ivptc?"
},
{
"role": "assistant",
"content": "SELECT \"programming\" FROM \"television\" WHERE \"operator\"='ivptc';"
}
] |
[
{
"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 score when Richmond payed as the home team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_8\" WHERE \"home_team\"='richmond';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_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 played against Carlton as the home team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_8\" WHERE \"away_team\"='carlton';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_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 attendance when South Melbourne was the away team?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"crowd\") FROM \"round_8\" 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: Who was the home team when the VFL played Kardinia Park?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_8\" WHERE \"venue\"='kardinia park';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"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 silver medals did the nation who received 32 bronze medals receive?"
},
{
"role": "assistant",
"content": "SELECT \"silver\" FROM \"medal_table\" WHERE \"bronze\"=32;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_1_results\" (\n \"name\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What is the highest numbered grid with a time or retired time of 52:52.1881?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"grid\") FROM \"race_1_results\" WHERE \"time_retired\"='52:52.1881';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_1_results\" (\n \"name\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: Who recorded a time or retired time of 52:56.4653?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"race_1_results\" WHERE \"time_retired\"='52:56.4653';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_1_results\" (\n \"name\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What is the average grid number for paul cruickshank racing with less than 27 laps?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"grid\") FROM \"race_1_results\" WHERE \"team\"='paul cruickshank racing' AND \"laps\"<27;"
}
] |
[
{
"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\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the lowest total metals of a team with more than 6 silver, 6 bronze, and fewer than 16 gold medals?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"total\") FROM \"medal_table\" WHERE \"silver\">6 AND \"bronze\"=6 AND \"gold\"<16;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"arnold_today\" (\n \"school\" text,\n \"09_10_fcat\" text,\n \"09_10_points\" real,\n \"09_10_graduation\" text,\n \"08_09_fcat\" text\n);\n\nQuestion: What 09-10 class, with a graduate percentage of 85% had the least amount of points?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"09_10_points\") FROM \"arnold_today\" WHERE \"09_10_graduation\"='85%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the crowd size of the game at Brunswick Street Oval?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"crowd\") FROM \"round_10\" WHERE \"venue\"='brunswick street oval';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who was the home team of the game where Footscray is the away team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_10\" 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_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who is the away team with a score of 7.8 (50)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_10\" WHERE \"away_team_score\"='7.8 (50)';"
}
] |
[
{
"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 week has a date of September 3, 2000?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"week\") FROM \"schedule\" WHERE \"date\"='september 3, 2000';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_17\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who was the home team when Hawthorn was the away team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_17\" WHERE \"away_team\"='hawthorn';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_17\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who was the away team when the home team scored 11.14 (80)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_17\" WHERE \"home_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_17\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was Fitzroy's score when they were the away team?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_17\" 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 \"1971_isle_of_man_production_750_cc_tt_fi\" (\n \"rank\" real,\n \"rider\" text,\n \"team\" text,\n \"speed\" text,\n \"time\" text\n);\n\nQuestion: What was #7 BMW's speed?"
},
{
"role": "assistant",
"content": "SELECT \"speed\" FROM \"1971_isle_of_man_production_750_cc_tt_fi\" WHERE \"team\"='bmw' AND \"rank\"=7;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the crowd size in the match South Melbourne played at home?"
},
{
"role": "assistant",
"content": "SELECT \"crowd\" FROM \"round_1\" 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 \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the away team's score at Western Oval?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_1\" 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_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the date when the away team scored 9.16 (70)?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_1\" WHERE \"away_team_score\"='9.16 (70)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the crowd size when Essendon was the away team?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"crowd\") FROM \"round_1\" 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_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the home team that scored 13.13 (91) in front of a crowd larger than 10,000?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_1\" WHERE \"crowd\">'10,000' AND \"home_team_score\"='13.13 (91)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women\" (\n \"event\" text,\n \"time\" text,\n \"nationality\" text,\n \"date\" text,\n \"meet\" text,\n \"location\" text\n);\n\nQuestion: On what date was the time of 16:24.12 achieved?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"women\" WHERE \"time\"='16:24.12';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_results\" (\n \"year\" real,\n \"game\" text,\n \"team\" text,\n \"runner_up\" text,\n \"score\" text\n);\n\nQuestion: What year did the Capital City Giants have a game with the final score of 8-0?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"year\") FROM \"game_results\" WHERE \"team\"='capital city giants' AND \"score\"='8-0';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_results\" (\n \"year\" real,\n \"game\" text,\n \"team\" text,\n \"runner_up\" text,\n \"score\" text\n);\n\nQuestion: What team lost a game by a score of 6-0?"
},
{
"role": "assistant",
"content": "SELECT \"runner_up\" FROM \"game_results\" WHERE \"score\"='6-0';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_results\" (\n \"year\" real,\n \"game\" text,\n \"team\" text,\n \"runner_up\" text,\n \"score\" text\n);\n\nQuestion: What teams played in Capital Bowl IV?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"game_results\" WHERE \"game\"='capital bowl iv';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_results\" (\n \"year\" real,\n \"game\" text,\n \"team\" text,\n \"runner_up\" text,\n \"score\" text\n);\n\nQuestion: What team defeated the Capital City Giants?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"game_results\" WHERE \"runner_up\"='capital city giants';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"senate_time\" (\n \"total_tenure_rank\" real,\n \"uninterrupted_rank\" real,\n \"name\" text,\n \"state_represented\" text,\n \"total_tenure_time\" text,\n \"uninterrupted_time\" text\n);\n\nQuestion: What is the total tenure rank of the person with an uninterrupted time of 49 years, 349 days?"
},
{
"role": "assistant",
"content": "SELECT \"total_tenure_rank\" FROM \"senate_time\" WHERE \"uninterrupted_time\"='49 years, 349 days';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"senate_time\" (\n \"total_tenure_rank\" real,\n \"uninterrupted_rank\" real,\n \"name\" text,\n \"state_represented\" text,\n \"total_tenure_time\" text,\n \"uninterrupted_time\" text\n);\n\nQuestion: What is the total tenure time of Warren Magnuson, who had an uninterrupted rank larger than 4 and a total tenure rank larger than 9?"
},
{
"role": "assistant",
"content": "SELECT \"total_tenure_time\" FROM \"senate_time\" WHERE \"uninterrupted_rank\">4 AND \"total_tenure_rank\">9 AND \"name\"='warren magnuson';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2004_new_england_patriots_draft_selectio\" (\n \"round\" real,\n \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What round was the overall 63 drafted?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"round\") FROM \"2004_new_england_patriots_draft_selectio\" WHERE \"overall\"=63;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regions\" (\n \"in_english\" text,\n \"in_finnish\" text,\n \"in_swedish\" text,\n \"capital\" text,\n \"regional_state_administrative_agency\" text\n);\n\nQuestion: What is the Swedish name for South Karelia?"
},
{
"role": "assistant",
"content": "SELECT \"in_swedish\" FROM \"regions\" WHERE \"in_english\"='south karelia';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the home team in the match where the away team scored 15.12 (102)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_1\" WHERE \"away_team_score\"='15.12 (102)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What home team plays at Arden Street Oval?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_1\" 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 \"final_round\" (\n \"athlete_name\" text,\n \"jump_1\" text,\n \"jump_2\" text,\n \"jump_3\" text,\n \"best_jump\" text\n);\n\nQuestion: Who has a Jump 2 of 7.06, and what is this person's Jump 3?"
},
{
"role": "assistant",
"content": "SELECT \"jump_3\" FROM \"final_round\" WHERE \"jump_2\"='7.06';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"athlete_name\" text,\n \"jump_1\" text,\n \"jump_2\" text,\n \"jump_3\" text,\n \"best_jump\" text\n);\n\nQuestion: Who has an x under Jump 1, a Jump 2 of 7.28, and what is this person's Best Jump?"
},
{
"role": "assistant",
"content": "SELECT \"best_jump\" FROM \"final_round\" WHERE \"jump_1\"='x' AND \"jump_2\"='7.28';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"athlete_name\" text,\n \"jump_1\" text,\n \"jump_2\" text,\n \"jump_3\" text,\n \"best_jump\" text\n);\n\nQuestion: What is the Jump 2 of the person that has a Jump 3 of 7.77?"
},
{
"role": "assistant",
"content": "SELECT \"jump_2\" FROM \"final_round\" WHERE \"jump_3\"='7.77';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"athlete_name\" text,\n \"jump_1\" text,\n \"jump_2\" text,\n \"jump_3\" text,\n \"best_jump\" text\n);\n\nQuestion: What is the Jump 2 of the person that has a Jump 1 of 7.14"
},
{
"role": "assistant",
"content": "SELECT \"jump_2\" FROM \"final_round\" WHERE \"jump_1\"='7.14';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pac_10_12_tournament\" (\n \"year\" real,\n \"champion\" text,\n \"score\" text,\n \"runner_up\" text,\n \"arena\" text,\n \"city\" text,\n \"tournament_mvp\" text\n);\n\nQuestion: Which player from Tucson, Arizona won the Championship?"
},
{
"role": "assistant",
"content": "SELECT \"champion\" FROM \"pac_10_12_tournament\" WHERE \"city\"='tucson, arizona';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pac_10_12_tournament\" (\n \"year\" real,\n \"champion\" text,\n \"score\" text,\n \"runner_up\" text,\n \"arena\" text,\n \"city\" text,\n \"tournament_mvp\" text\n);\n\nQuestion: What was the final score of the player from Inglewood, California?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"pac_10_12_tournament\" WHERE \"city\"='inglewood, california';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"le_tour_de_pilipinas_padyak_pinoy_fed_ex\" (\n \"year\" real,\n \"name\" text,\n \"date\" text,\n \"stages\" text,\n \"distance\" text,\n \"winner\" text,\n \"time\" text\n);\n\nQuestion: What tour was cancelled?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"le_tour_de_pilipinas_padyak_pinoy_fed_ex\" WHERE \"date\"='cancelled';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"le_tour_de_pilipinas_padyak_pinoy_fed_ex\" (\n \"year\" real,\n \"name\" text,\n \"date\" text,\n \"stages\" text,\n \"distance\" text,\n \"winner\" text,\n \"time\" text\n);\n\nQuestion: Who won the Fedex tour of Calabarzon?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"le_tour_de_pilipinas_padyak_pinoy_fed_ex\" WHERE \"name\"='fedex tour of calabarzon';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"le_tour_de_pilipinas_padyak_pinoy_fed_ex\" (\n \"year\" real,\n \"name\" text,\n \"date\" text,\n \"stages\" text,\n \"distance\" text,\n \"winner\" text,\n \"time\" text\n);\n\nQuestion: What year has the time of 55:29:20?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"year\") FROM \"le_tour_de_pilipinas_padyak_pinoy_fed_ex\" WHERE \"time\"='55:29:20';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_finals_8\" (\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 when Mark parterned with lorenzo manta?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"doubles_finals_8\" WHERE \"partner\"='lorenzo manta';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_finals_8\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: Who was his partner when he played on carpet?"
},
{
"role": "assistant",
"content": "SELECT \"partner\" FROM \"doubles_finals_8\" WHERE \"surface\"='carpet';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_finals_8\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: When did he play with peter nyborg?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"doubles_finals_8\" WHERE \"partner\"='peter nyborg';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_finals_8\" (\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 day did he play on hard with tom mercer?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"doubles_finals_8\" WHERE \"surface\"='hard' AND \"partner\"='tom mercer';"
}
] |
[
{
"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 \"kickoff\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" text\n);\n\nQuestion: What was the week 2's record?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule\" WHERE \"week\"='2';"
}
] |
[
{
"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 \"kickoff\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" text\n);\n\nQuestion: What was week 12's record?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule\" WHERE \"week\"='12';"
}
] |
[
{
"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 \"kickoff\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" text\n);\n\nQuestion: What was the Bye week attendance?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"record\"='bye';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.