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 \"windows_nt\" (\n \"fat16\" text,\n \"fat32\" text,\n \"hpfs\" text,\n \"iso_9660\" text,\n \"ntfs\" text,\n \"re_fs\" text\n);\n\nQuestion: Which FAT32 has a no for HPFS, a no for ReFS, and a yes v3.0 fir NTFS?"
},
{
"role": "assistant",
"content": "SELECT \"fat32\" FROM \"windows_nt\" WHERE \"hpfs\"='no' AND \"re_fs\"='no' AND \"ntfs\"='yes v3.0';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"windows_nt\" (\n \"fat16\" text,\n \"fat32\" text,\n \"hpfs\" text,\n \"iso_9660\" text,\n \"ntfs\" text,\n \"re_fs\" text\n);\n\nQuestion: Which ReFS has yes v3.0 for NTFS?"
},
{
"role": "assistant",
"content": "SELECT \"re_fs\" FROM \"windows_nt\" WHERE \"ntfs\"='yes v3.0';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"windows_nt\" (\n \"fat16\" text,\n \"fat32\" text,\n \"hpfs\" text,\n \"iso_9660\" text,\n \"ntfs\" text,\n \"re_fs\" text\n);\n\nQuestion: Which NTFS has a no for ReFS and a yes for HPFS?"
},
{
"role": "assistant",
"content": "SELECT \"ntfs\" FROM \"windows_nt\" WHERE \"re_fs\"='no' AND \"hpfs\"='yes';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"g\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"from\" text,\n \"school_country\" text\n);\n\nQuestion: What player position was drafted in 1955?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"g\" WHERE \"from\"='1955';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"g\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"from\" text,\n \"school_country\" text\n);\n\nQuestion: From what school was a player drafted in 1950?"
},
{
"role": "assistant",
"content": "SELECT \"school_country\" FROM \"g\" WHERE \"from\"='1950';"
}
] |
[
{
"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 home team has a score of 11.9 (75)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_7\" WHERE \"home_team_score\"='11.9 (75)';"
}
] |
[
{
"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 home team plays at glenferrie oval?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_7\" WHERE \"venue\"='glenferrie oval';"
}
] |
[
{
"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 is the away side that playes at lake oval?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_7\" 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_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 day does the away team score 7.8 (50)?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_7\" 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 \"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 is the away side when carlton is the home side?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" 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_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: Who is the away team at western oval?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_12\" 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_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 venue featured the home side scoring 10.17 (77)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_12\" WHERE \"home_team_score\"='10.17 (77)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_legend_of_the_ice_people\" (\n \"swedish_title\" text,\n \"norwegian_title\" text,\n \"icelandic_title\" text,\n \"translated_title\" text,\n \"polish_title\" text,\n \"hungarian_title\" text,\n \"published\" real\n);\n\nQuestion: What is the Icelandic title for the Norweigan titled galgeblomsten?"
},
{
"role": "assistant",
"content": "SELECT \"icelandic_title\" FROM \"the_legend_of_the_ice_people\" WHERE \"norwegian_title\"='galgeblomsten';"
}
] |
[
{
"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: When is the event at lake oval?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_1\" 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_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the 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's the home team's score at lake oval?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_1\" 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_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 date did VFL play MCG?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_9\" WHERE \"venue\"='mcg';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_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: How many times is st kilda the away team?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"crowd\") FROM \"round_4\" WHERE \"away_team\"='st kilda';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_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 largest crowd when the home team scores 14.12 (96)?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"crowd\") FROM \"round_4\" WHERE \"home_team_score\"='14.12 (96)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_11\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When the crowd was larger than 20,915 what did the Away team score?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_11\" WHERE \"crowd\">'20,915';"
}
] |
[
{
"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 did the Away team score in their game at Victoria Park?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_11\" 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_11\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When the crowd was over 15,322 in Richmond what did the Away team score?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_11\" WHERE \"crowd\">'15,322' AND \"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_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 did the Home team score when they were in MCG?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_11\" WHERE \"venue\"='mcg';"
}
] |
[
{
"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 \"game_site\" text,\n \"attendance\" text\n);\n\nQuestion: What was the attendance for each game held at Foxboro Stadium?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"game_site\"='foxboro stadium';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"attendance\" text\n);\n\nQuestion: When was the game against the Indianapolis Colts?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"opponent\"='indianapolis colts';"
}
] |
[
{
"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 \"game_site\" text,\n \"attendance\" text\n);\n\nQuestion: How many weeks total did the New York Jets face the Pittsburgh Steelers?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"week\") FROM \"schedule\" WHERE \"opponent\"='pittsburgh steelers';"
}
] |
[
{
"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 \"game_site\" text,\n \"attendance\" text\n);\n\nQuestion: What week did the Jets play in the meadowlands with and attendance of 78,161?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"week\") FROM \"schedule\" WHERE \"game_site\"='the meadowlands' AND \"attendance\"='78,161';"
}
] |
[
{
"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 \"game_site\" text,\n \"attendance\" text\n);\n\nQuestion: Who did the Jets play in the Meadowlands on week 14?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"game_site\"='the meadowlands' AND \"week\"=14;"
}
] |
[
{
"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 \"game_site\" text,\n \"attendance\" text\n);\n\nQuestion: What was the Jets week 17 attendance?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"week\"=17;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_casinos\" (\n \"casino\" text,\n \"opening_date\" text,\n \"theme\" text,\n \"hotel_rooms\" real,\n \"section_of_atlantic_city\" text\n);\n\nQuestion: When did the hotel with 727 rooms open?"
},
{
"role": "assistant",
"content": "SELECT \"opening_date\" FROM \"current_casinos\" WHERE \"hotel_rooms\"=727;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"round\" real,\n \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which school(s) had a wide receiver drafted in round 4?"
},
{
"role": "assistant",
"content": "SELECT \"school_club_team\" FROM \"nfl_draft\" WHERE \"round\">4 AND \"position\"='wide receiver';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"l\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"from\" real,\n \"school_country\" text\n);\n\nQuestion: Which of the above are from 1987?"
},
{
"role": "assistant",
"content": "SELECT \"school_country\" FROM \"l\" WHERE \"from\"=1987;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"l\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"from\" real,\n \"school_country\" text\n);\n\nQuestion: What position is the player from 1987?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"l\" WHERE \"from\"=1987;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"l\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"from\" real,\n \"school_country\" text\n);\n\nQuestion: What position is the player from 1959?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"l\" WHERE \"from\"=1959;"
}
] |
[
{
"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 \"record\" text,\n \"attendance\" real\n);\n\nQuestion: Who was the opponent before week 6 at cleveland municipal stadium?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"regular_season\" WHERE \"week\"<6 AND \"game_site\"='cleveland municipal stadium';"
}
] |
[
{
"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 date was Richmond the away team?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_18\" 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 \"historical_population\" (\n \"rank\" text,\n \"county\" text,\n \"pct_1960\" real,\n \"pct_2000\" real,\n \"pct_2040\" real\n);\n\nQuestion: Which county has a % (2040) larger than 1.8, a % (2000) smaller than 4.1, a % (1960) smaller than 3.2, and is ranked 13?"
},
{
"role": "assistant",
"content": "SELECT \"county\" FROM \"historical_population\" WHERE \"pct_2040\">1.8 AND \"pct_2000\"<4.1 AND \"pct_1960\"<3.2 AND \"rank\"='13';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"historical_population\" (\n \"rank\" text,\n \"county\" text,\n \"pct_1960\" real,\n \"pct_2000\" real,\n \"pct_2040\" real\n);\n\nQuestion: What is the % (1960) of Troms, which has a % (2040) smaller than 100 and a % (2000) smaller than 4.7?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"pct_1960\") FROM \"historical_population\" WHERE \"pct_2040\"<100 AND \"pct_2000\"<4.7 AND \"county\"='troms';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"historical_population\" (\n \"rank\" text,\n \"county\" text,\n \"pct_1960\" real,\n \"pct_2000\" real,\n \"pct_2040\" real\n);\n\nQuestion: What is the % (1960) of the county with a % (2040) of 3.4?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"pct_1960\") FROM \"historical_population\" WHERE \"pct_2040\"=3.4;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"complete_ballet\" (\n \"orchestra\" text,\n \"conductor\" text,\n \"record_company\" text,\n \"year_of_recording\" real,\n \"format\" text\n);\n\nQuestion: What record company has robert craft conducting?"
},
{
"role": "assistant",
"content": "SELECT \"record_company\" FROM \"complete_ballet\" WHERE \"conductor\"='robert craft';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"complete_ballet\" (\n \"orchestra\" text,\n \"conductor\" text,\n \"record_company\" text,\n \"year_of_recording\" real,\n \"format\" text\n);\n\nQuestion: Who is the conductor when the chicago symphony orchestra is featured?"
},
{
"role": "assistant",
"content": "SELECT \"conductor\" FROM \"complete_ballet\" WHERE \"orchestra\"='chicago symphony orchestra';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: How many people attended the Cleveland Browns game on November 11, 1979?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"attendance\") FROM \"schedule\" WHERE \"date\"='november 11, 1979' AND \"week\">11;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: The game on September 2, 1979 was during which week of the season?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"week\") FROM \"schedule\" WHERE \"date\"='september 2, 1979';"
}
] |
[
{
"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 home team's score at the game where Richmond was the away team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" 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: What was the size of the crowd when Essendon was the away team?"
},
{
"role": "assistant",
"content": "SELECT \"crowd\" 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 \"british_railways_batch\" (\n \"br_no\" real,\n \"name\" text,\n \"builder\" text,\n \"whenbuilt\" text,\n \"withdrawn\" text\n);\n\nQuestion: What is the whenbuilt of the Brighton built Blandford Forum with a withdrawn of september 1964?"
},
{
"role": "assistant",
"content": "SELECT \"whenbuilt\" FROM \"british_railways_batch\" WHERE \"builder\"='brighton' AND \"withdrawn\"='september 1964' AND \"name\"='blandford forum';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_13\" (\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 with an Away team score of 8.11 (59)?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"crowd\") FROM \"round_13\" WHERE \"away_team_score\"='8.11 (59)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_13\" (\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 team has Away team score of 8.11 (59)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_13\" WHERE \"away_team_score\"='8.11 (59)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_16\" (\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 score when the team team score was 15.8 (98)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_16\" WHERE \"home_team_score\"='15.8 (98)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_16\" (\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 listed attendance when north melbourne was the home team?"
},
{
"role": "assistant",
"content": "SELECT \"crowd\" FROM \"round_16\" WHERE \"home_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_16\" (\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 was geelong the home team?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_16\" 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_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: Who played as the home team when the attendance was more than 30,080?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_12\" WHERE \"crowd\">'30,080';"
}
] |
[
{
"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 was the highest attendance at Junction Oval?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"crowd\") FROM \"round_12\" WHERE \"venue\"='junction oval';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_12\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the away teams score when Hawthorn played as the home team?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_12\" 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 \"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 does Atlantic 10 have?"
},
{
"role": "assistant",
"content": "SELECT \"num_of_bids\" FROM \"record_by_conference\" WHERE \"conference\"='atlantic 10';"
}
] |
[
{
"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 away team's score in the game against North Melbourne?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_11\" WHERE \"home_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_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 lowest crowd size when the away team scored 11.17 (83)?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"crowd\") FROM \"round_11\" WHERE \"away_team_score\"='11.17 (83)';"
}
] |
[
{
"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 average crowd size when the away team was South Melbourne?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"crowd\") FROM \"round_11\" 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_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 a crowd larger than 11,000 see the away team score 11.10 (76)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_11\" WHERE \"crowd\">'11,000' AND \"away_team_score\"='11.10 (76)';"
}
] |
[
{
"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 was the away team Fitzroy?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" 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 \"tour_of_luzon\" (\n \"year\" text,\n \"date\" text,\n \"stages\" text,\n \"distance\" text,\n \"winner\" text\n);\n\nQuestion: In what year saw a total distance of 1,870.23 km?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"tour_of_luzon\" WHERE \"distance\"='1,870.23 km';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tour_of_luzon\" (\n \"year\" text,\n \"date\" text,\n \"stages\" text,\n \"distance\" text,\n \"winner\" text\n);\n\nQuestion: Who won in 1965?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"tour_of_luzon\" WHERE \"year\"='1965';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tour_of_luzon\" (\n \"year\" text,\n \"date\" text,\n \"stages\" text,\n \"distance\" text,\n \"winner\" text\n);\n\nQuestion: What stage was 1,648 km achieved?"
},
{
"role": "assistant",
"content": "SELECT \"stages\" FROM \"tour_of_luzon\" WHERE \"distance\"='1,648 km';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tour_of_luzon\" (\n \"year\" text,\n \"date\" text,\n \"stages\" text,\n \"distance\" text,\n \"winner\" text\n);\n\nQuestion: What year was stage 8 reached?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"tour_of_luzon\" WHERE \"stages\"='8';"
}
] |
[
{
"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 number of bronze medals for teams ranked below 13?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"bronze\") FROM \"medal_table\" WHERE \"rank\">13;"
}
] |
[
{
"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: How many golds for teams ranking below 7 with 3 bronze and less than 5 total medals?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"gold\") FROM \"medal_table\" WHERE \"bronze\"=3 AND \"rank\">7 AND \"total\"<5;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_and_lowest_scoring_performances\" (\n \"dance\" text,\n \"best_dancer_s\" text,\n \"highest_score\" real,\n \"worst_dancer_s\" text,\n \"lowest_score\" real\n);\n\nQuestion: What is the lowest score in the Highest score column when Master P was the Worst dancer(s), Drew Lachey was the Best dancer(s), and the Lowest score was under 8?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"highest_score\") FROM \"highest_and_lowest_scoring_performances\" WHERE \"worst_dancer_s\"='master p' AND \"best_dancer_s\"='drew lachey' AND \"lowest_score\"<8;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_and_lowest_scoring_performances\" (\n \"dance\" text,\n \"best_dancer_s\" text,\n \"highest_score\" real,\n \"worst_dancer_s\" text,\n \"lowest_score\" real\n);\n\nQuestion: Which of the Worst dancer(s) has the Lowest score of 14?"
},
{
"role": "assistant",
"content": "SELECT \"worst_dancer_s\" FROM \"highest_and_lowest_scoring_performances\" WHERE \"lowest_score\"=14;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_and_lowest_scoring_performances\" (\n \"dance\" text,\n \"best_dancer_s\" text,\n \"highest_score\" real,\n \"worst_dancer_s\" text,\n \"lowest_score\" real\n);\n\nQuestion: What is the Dance with the Highest score under 30 and Stacy Keibler as the Best dancer(s)?"
},
{
"role": "assistant",
"content": "SELECT \"dance\" FROM \"highest_and_lowest_scoring_performances\" WHERE \"highest_score\"<30 AND \"best_dancer_s\"='stacy keibler';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_and_lowest_scoring_performances\" (\n \"dance\" text,\n \"best_dancer_s\" text,\n \"highest_score\" real,\n \"worst_dancer_s\" text,\n \"lowest_score\" real\n);\n\nQuestion: What is the lowest of the Highest score for the Quickstep Dance and the Lowest score under 16?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"highest_score\") FROM \"highest_and_lowest_scoring_performances\" WHERE \"dance\"='quickstep' AND \"lowest_score\"<16;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What is his record at ufc 67?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"mixed_martial_arts_record\" WHERE \"event\"='ufc 67';"
}
] |
[
{
"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: What is his record at ufc 115?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"mixed_martial_arts_record\" WHERE \"event\"='ufc 115';"
}
] |
[
{
"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 \"record\" text,\n \"attendance\" text\n);\n\nQuestion: Which opponent had an attendance of 40,070?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"attendance\"='40,070';"
}
] |
[
{
"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 \"record\" text,\n \"attendance\" text\n);\n\nQuestion: What's the result for the game held on December 27, 2004 with a week greater than 2?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"week\">2 AND \"date\"='december 27, 2004';"
}
] |
[
{
"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 \"record\" text,\n \"attendance\" text\n);\n\nQuestion: Who was the opponent for week 6?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" 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 \"record\" text,\n \"attendance\" text\n);\n\nQuestion: Which opponent had the result of W 24-14?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"result\"='w 24-14';"
}
] |
[
{
"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 \"record\" text,\n \"attendance\" text\n);\n\nQuestion: What's the attendance for the game held on January 2, 2005?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"date\"='january 2, 2005';"
}
] |
[
{
"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: Which had an attendance of larger than 33,435?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"exhibition_schedule\" WHERE \"attendance\">'33,435';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"coaching_changes\" (\n \"team\" text,\n \"bowl\" text,\n \"season_coach\" text,\n \"interim_head_coach\" text,\n \"result\" text,\n \"2008_head_coach\" text\n);\n\nQuestion: Which team lost under interim head coach, Dewayne Walker?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"coaching_changes\" WHERE \"result\"='lost' AND \"interim_head_coach\"='dewayne walker';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"coaching_changes\" (\n \"team\" text,\n \"bowl\" text,\n \"season_coach\" text,\n \"interim_head_coach\" text,\n \"result\" text,\n \"2008_head_coach\" text\n);\n\nQuestion: What was the result under interim head coach, Gary Darnell?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"coaching_changes\" WHERE \"interim_head_coach\"='gary darnell';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"coaching_changes\" (\n \"team\" text,\n \"bowl\" text,\n \"season_coach\" text,\n \"interim_head_coach\" text,\n \"result\" text,\n \"2008_head_coach\" text\n);\n\nQuestion: What was the result in 2008 under head coach Mike Sherman?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"coaching_changes\" WHERE \"2008_head_coach\"='mike sherman';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"coaching_changes\" (\n \"team\" text,\n \"bowl\" text,\n \"season_coach\" text,\n \"interim_head_coach\" text,\n \"result\" text,\n \"2008_head_coach\" text\n);\n\nQuestion: What team has a bowl of humanitarian?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"coaching_changes\" WHERE \"bowl\"='humanitarian';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"coaching_changes\" (\n \"team\" text,\n \"bowl\" text,\n \"season_coach\" text,\n \"interim_head_coach\" text,\n \"result\" text,\n \"2008_head_coach\" text\n);\n\nQuestion: What is the result under the season coach Rich Rodriguez?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"coaching_changes\" WHERE \"season_coach\"='rich rodriguez';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"coaching_changes\" (\n \"team\" text,\n \"bowl\" text,\n \"season_coach\" text,\n \"interim_head_coach\" text,\n \"result\" text,\n \"2008_head_coach\" text\n);\n\nQuestion: Who is the 2008 head coach of UCLA?"
},
{
"role": "assistant",
"content": "SELECT \"2008_head_coach\" FROM \"coaching_changes\" WHERE \"team\"='ucla';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"challengers_and_futures_17\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: In what score did the match against Marcos Daniel end?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"challengers_and_futures_17\" WHERE \"opponent_in_the_final\"='marcos daniel';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"challengers_and_futures_17\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What was the score of the game played on a clay surface on June 6, 2005?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"challengers_and_futures_17\" WHERE \"surface\"='clay' AND \"date\"='june 6, 2005';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"challengers_and_futures_17\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: On what date did the match against Flavio Cipolla, played on a clay surface, occur?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"challengers_and_futures_17\" WHERE \"surface\"='clay' AND \"opponent_in_the_final\"='flavio cipolla';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_6\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which home team had a home team score of 15.8 (98)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_6\" WHERE \"home_team_score\"='15.8 (98)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_6\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was Fitzroy's score when they were the home team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_6\" WHERE \"home_team\"='fitzroy';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_6\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who was the home team when the away team had a score of 11.18 (84)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_6\" WHERE \"away_team_score\"='11.18 (84)';"
}
] |
[
{
"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 was the Hawthorn game played?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_7\" 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_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 away teams score at Princes Park?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_7\" WHERE \"venue\"='princes park';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1971_isle_of_man_sidecar_750cc_tt_final_\" (\n \"rank\" real,\n \"rider\" text,\n \"team\" text,\n \"speed\" text,\n \"time\" text\n);\n\nQuestion: Which Rider finished with a speed of 81.91mph?"
},
{
"role": "assistant",
"content": "SELECT \"rider\" FROM \"1971_isle_of_man_sidecar_750cc_tt_final_\" WHERE \"speed\"='81.91mph';"
}
] |
[
{
"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_sidecar_750cc_tt_final_\" (\n \"rank\" real,\n \"rider\" text,\n \"team\" text,\n \"speed\" text,\n \"time\" text\n);\n\nQuestion: Which Rider finished with a speed of 80.18mph?"
},
{
"role": "assistant",
"content": "SELECT \"rider\" FROM \"1971_isle_of_man_sidecar_750cc_tt_final_\" WHERE \"speed\"='80.18mph';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_13\" (\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 at princes park?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_13\" WHERE \"venue\"='princes park';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the largest crowd when the home team scores 16.16 (112)?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"crowd\") FROM \"round_13\" WHERE \"home_team_score\"='16.16 (112)';"
}
] |
[
{
"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 venue for the Footscray home team?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_5\" 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_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: Which home team's venue is Windy Hill?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_5\" WHERE \"venue\"='windy hill';"
}
] |
[
{
"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 score for Hawthorn as an away team?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_5\" 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_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 score of the away team when the home team is Essendon?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_5\" WHERE \"home_team\"='essendon';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.