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 \"discography\" (\n \"release_date\" text,\n \"album_title\" text,\n \"record_label\" text,\n \"disc_number\" text,\n \"track_number\" text,\n \"title\" text\n);\n\nQuestion: Name The Title which has a Track number of 07, and a Record label of emi on 21 april 2006?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"discography\" WHERE \"track_number\"='07' AND \"record_label\"='emi' AND \"release_date\"='21 april 2006';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fifth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: WHAT'S THE TIE NUMBER WITH AN AWAY TEAM OF WREXHAM?"
},
{
"role": "assistant",
"content": "SELECT \"tie_no\" FROM \"fifth_round_proper\" WHERE \"away_team\"='wrexham';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fifth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: WHAT IS THE AWAY TEAM WITH HOME OF LEICESTER CITY?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"fifth_round_proper\" WHERE \"home_team\"='leicester city';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fifth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: WHAT IS THE AWAY TEAM WHEN HOME IS LEEDS UNITED?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"fifth_round_proper\" WHERE \"home_team\"='leeds united';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fifth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: WHAT IS THE AWAY TEAM WITH A TIE NUMBER 1?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"fifth_round_proper\" WHERE \"tie_no\"='1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fourth_division\" (\n \"club\" text,\n \"league_goals\" text,\n \"fa_cup_goals\" text,\n \"league_cup_goals\" text,\n \"total\" real\n);\n\nQuestion: Which Total has a Club of darlington, and a League goals of 13, and a League Cup goals of 1?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"total\") FROM \"fourth_division\" WHERE \"club\"='darlington' AND \"league_goals\"='13' AND \"league_cup_goals\"='1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fourth_division\" (\n \"club\" text,\n \"league_goals\" text,\n \"fa_cup_goals\" text,\n \"league_cup_goals\" text,\n \"total\" real\n);\n\nQuestion: Which Club has a League Cup goals of 0, and a FA Cup goals of 1, and a Total larger than 11, and a League goals of 13?"
},
{
"role": "assistant",
"content": "SELECT \"club\" FROM \"fourth_division\" WHERE \"league_cup_goals\"='0' AND \"fa_cup_goals\"='1' AND \"total\">11 AND \"league_goals\"='13';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fourth_division\" (\n \"club\" text,\n \"league_goals\" text,\n \"fa_cup_goals\" text,\n \"league_cup_goals\" text,\n \"total\" real\n);\n\nQuestion: Which League Cup goals have a Total larger than 14, and a League goals of 14, and a FA Cup goals of 0?"
},
{
"role": "assistant",
"content": "SELECT \"league_cup_goals\" FROM \"fourth_division\" WHERE \"total\">14 AND \"league_goals\"='14' AND \"fa_cup_goals\"='0';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fourth_division\" (\n \"club\" text,\n \"league_goals\" text,\n \"fa_cup_goals\" text,\n \"league_cup_goals\" text,\n \"total\" real\n);\n\nQuestion: Which Total has an FA Cup goals of 1, and a League goals of 4 + 7?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"total\") FROM \"fourth_division\" WHERE \"fa_cup_goals\"='1' AND \"league_goals\"='4 + 7';"
}
] |
[
{
"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\" text\n);\n\nQuestion: What event had a win, record of 8-1 and n/a round?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"mixed_martial_arts_record\" WHERE \"res\"='win' AND \"round\"='n/a' AND \"record\"='8-1';"
}
] |
[
{
"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\" text\n);\n\nQuestion: What event was the opponent Karl Knothe and had a submission (rear naked choke)?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"mixed_martial_arts_record\" WHERE \"method\"='submission (rear naked choke)' AND \"opponent\"='karl knothe';"
}
] |
[
{
"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\" text\n);\n\nQuestion: What's the record for the match when the res was a win and the method was a decision?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"mixed_martial_arts_record\" WHERE \"method\"='decision' AND \"res\"='win';"
}
] |
[
{
"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\" text\n);\n\nQuestion: What round had a record of 4-1?"
},
{
"role": "assistant",
"content": "SELECT \"round\" FROM \"mixed_martial_arts_record\" WHERE \"record\"='4-1';"
}
] |
[
{
"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\" text\n);\n\nQuestion: What's the record of the UCS 2 - Battle at the Barn when the round was n/a?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"mixed_martial_arts_record\" WHERE \"round\"='n/a' AND \"event\"='ucs 2 - battle at the barn';"
}
] |
[
{
"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\" text\n);\n\nQuestion: What round had a record of 8-2?"
},
{
"role": "assistant",
"content": "SELECT \"round\" FROM \"mixed_martial_arts_record\" WHERE \"record\"='8-2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: Who is the opponent when the record is 17-19-4?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"record\"='17-19-4';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What is the score of game 37?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"game\"=37;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What is the record on 1/17/1980?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"date\"='1/17/1980';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: What date was game number 3?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"game\"=3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the record when George Hill (11) had the high rebounds?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"high_rebounds\"='george hill (11)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What number game happened on November 19?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"game\") FROM \"game_log\" WHERE \"date\"='november 19';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the high rebounds for game 12?"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"game\"=12;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summaries\" (\n \"team\" text,\n \"manager\" text,\n \"home_city\" text,\n \"stadium\" text,\n \"capacity\" real\n);\n\nQuestion: What is the name of the manager in the city of Osijek?"
},
{
"role": "assistant",
"content": "SELECT \"manager\" FROM \"summaries\" WHERE \"home_city\"='osijek';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summaries\" (\n \"team\" text,\n \"manager\" text,\n \"home_city\" text,\n \"stadium\" text,\n \"capacity\" real\n);\n\nQuestion: What is the team at Stadion Maksimir?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"summaries\" WHERE \"stadium\"='stadion maksimir';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summaries\" (\n \"team\" text,\n \"manager\" text,\n \"home_city\" text,\n \"stadium\" text,\n \"capacity\" real\n);\n\nQuestion: What is the home city when the stadium was Gradski Stadion U Poljudu?"
},
{
"role": "assistant",
"content": "SELECT \"home_city\" FROM \"summaries\" WHERE \"stadium\"='gradski stadion u poljudu';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summaries\" (\n \"team\" text,\n \"manager\" text,\n \"home_city\" text,\n \"stadium\" text,\n \"capacity\" real\n);\n\nQuestion: What is the home city when Mladen Fran\u010di\u0107 is the manager?"
},
{
"role": "assistant",
"content": "SELECT \"home_city\" FROM \"summaries\" WHERE \"manager\"='mladen fran\u010di\u0107';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1998\" (\n \"date\" text,\n \"opponent\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: Who was the opponent when the attendance was 80,079?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"1998\" WHERE \"attendance\"='80,079';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1998\" (\n \"date\" text,\n \"opponent\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: Who was the opponent when the attendance was 31,002?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"1998\" WHERE \"attendance\"='31,002';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1998\" (\n \"date\" text,\n \"opponent\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: Who was the opponent when they played at the legion field \u2022 birmingham, al site?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"1998\" WHERE \"site\"='legion field \u2022 birmingham, al';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1998\" (\n \"date\" text,\n \"opponent\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: On which site was the game against Louisville played?"
},
{
"role": "assistant",
"content": "SELECT \"site\" FROM \"1998\" WHERE \"opponent\"='louisville';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1998\" (\n \"date\" text,\n \"opponent\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What was the total attendance on September 12?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"1998\" WHERE \"date\"='september 12';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"anime\" (\n \"series\" text,\n \"title\" text,\n \"broadcasts_tv_1\" real,\n \"episodes_tv_extra_2\" text,\n \"directors\" text,\n \"aired_in_japan_3\" text,\n \"us_release_date\" text\n);\n\nQuestion: What is the sum of Broadcasts (TV) 1, when Series is \"3 4\", and when US Release Date is \"27 December 2006\"?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"broadcasts_tv_1\") FROM \"anime\" WHERE \"series\"='3 4' AND \"us_release_date\"='27 december 2006';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"anime\" (\n \"series\" text,\n \"title\" text,\n \"broadcasts_tv_1\" real,\n \"episodes_tv_extra_2\" text,\n \"directors\" text,\n \"aired_in_japan_3\" text,\n \"us_release_date\" text\n);\n\nQuestion: What is the total number of Broadcasts (TV) 1, when Aired in Japan 3 is \"5 January 2003 to 30 March 2003\"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"broadcasts_tv_1\") FROM \"anime\" WHERE \"aired_in_japan_3\"='5 january 2003 to 30 march 2003';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"anime\" (\n \"series\" text,\n \"title\" text,\n \"broadcasts_tv_1\" real,\n \"episodes_tv_extra_2\" text,\n \"directors\" text,\n \"aired_in_japan_3\" text,\n \"us_release_date\" text\n);\n\nQuestion: What is Episodes (TV+extra) 2, when Broadcasts (TV) 1 is less than 13, and when Directors is \"Shigehito Takayanagi\"?"
},
{
"role": "assistant",
"content": "SELECT \"episodes_tv_extra_2\" FROM \"anime\" WHERE \"broadcasts_tv_1\"<13 AND \"directors\"='shigehito takayanagi';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_selections\" (\n \"pick\" real,\n \"player\" text,\n \"team\" text,\n \"position\" text,\n \"hometown_school\" text\n);\n\nQuestion: What was the lowest pick when the position was OF with the Chicago White Sox?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"pick\") FROM \"first_round_selections\" WHERE \"position\"='of' AND \"team\"='chicago white sox';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_2014_teams\" (\n \"school\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"nickname\" text\n);\n\nQuestion: What is the affiliation of the University of Maryland?"
},
{
"role": "assistant",
"content": "SELECT \"affiliation\" FROM \"2013_2014_teams\" WHERE \"school\"='university of maryland';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_2014_teams\" (\n \"school\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"nickname\" text\n);\n\nQuestion: What school has the nickname of Cardinals?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"founded\") FROM \"2013_2014_teams\" WHERE \"nickname\"='cardinals';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_2014_teams\" (\n \"school\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"nickname\" text\n);\n\nQuestion: What is the nickname of the school located in Fairfax, VA?"
},
{
"role": "assistant",
"content": "SELECT \"nickname\" FROM \"2013_2014_teams\" WHERE \"location\"='fairfax, va';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"vocabulary_comparison\" (\n \"english\" text,\n \"three\" text,\n \"four\" text,\n \"person\" text,\n \"house\" text,\n \"coconut\" text,\n \"what\" text,\n \"fire\" text\n);\n\nQuestion: What is \"house\", when \"four\" is \"opat\"?"
},
{
"role": "assistant",
"content": "SELECT \"house\" FROM \"vocabulary_comparison\" WHERE \"four\"='opat';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"vocabulary_comparison\" (\n \"english\" text,\n \"three\" text,\n \"four\" text,\n \"person\" text,\n \"house\" text,\n \"coconut\" text,\n \"what\" text,\n \"fire\" text\n);\n\nQuestion: What is \"house\", when \"what\" is \"ano\", and when \"three\" is \"tulo\"?"
},
{
"role": "assistant",
"content": "SELECT \"house\" FROM \"vocabulary_comparison\" WHERE \"what\"='ano' AND \"three\"='tulo';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"vocabulary_comparison\" (\n \"english\" text,\n \"three\" text,\n \"four\" text,\n \"person\" text,\n \"house\" text,\n \"coconut\" text,\n \"what\" text,\n \"fire\" text\n);\n\nQuestion: What is the language, when \"house\" is \"balay\", when \"three\" is \"tatlo\", and when \"four\" is \"apat\"?"
},
{
"role": "assistant",
"content": "SELECT \"english\" FROM \"vocabulary_comparison\" WHERE \"house\"='balay' AND \"three\"='tatlo' AND \"four\"='apat';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"vocabulary_comparison\" (\n \"english\" text,\n \"three\" text,\n \"four\" text,\n \"person\" text,\n \"house\" text,\n \"coconut\" text,\n \"what\" text,\n \"fire\" text\n);\n\nQuestion: What is \"what\", when \"person\" is \"tawo\", when \"three\" is \"tuyo\", and when \"coconut\" is \"niyog\"?"
},
{
"role": "assistant",
"content": "SELECT \"what\" FROM \"vocabulary_comparison\" WHERE \"person\"='tawo' AND \"three\"='tuyo' AND \"coconut\"='niyog';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"vocabulary_comparison\" (\n \"english\" text,\n \"three\" text,\n \"four\" text,\n \"person\" text,\n \"house\" text,\n \"coconut\" text,\n \"what\" text,\n \"fire\" text\n);\n\nQuestion: What is the language, when \"what\" is \"ango\"?"
},
{
"role": "assistant",
"content": "SELECT \"english\" FROM \"vocabulary_comparison\" WHERE \"what\"='ango';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_7\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Who is the opponent for the game played on august 20, 2006?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"singles_7\" WHERE \"date\"='august 20, 2006';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_7\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: On which Surface will Estrella Cabeza Candela play?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"singles_7\" WHERE \"opponent\"='estrella cabeza candela';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What was the opponent on December 16, 1989?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"date\"='december 16, 1989';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What was the highest attendance on November 12, 1989?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"attendance\") FROM \"schedule\" WHERE \"date\"='november 12, 1989';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What was the week on December 10, 1989?"
},
{
"role": "assistant",
"content": "SELECT \"week\" FROM \"schedule\" WHERE \"date\"='december 10, 1989';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scottish_premier_league\" (\n \"match_day\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"league_position\" real,\n \"attendance\" real,\n \"report\" text\n);\n\nQuestion: What is the league position number when the attendance was 14,673 with a match day larger than 26?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"league_position\") FROM \"scottish_premier_league\" WHERE \"attendance\"='14,673' AND \"match_day\">26;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"previous_winners\" (\n \"year\" real,\n \"men_s_singles\" text,\n \"women_s_singles\" text,\n \"men_s_doubles\" text,\n \"women_s_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Which men's singles has mixed doubles with Kevin Cao Melody Liang?"
},
{
"role": "assistant",
"content": "SELECT \"men_s_singles\" FROM \"previous_winners\" WHERE \"mixed_doubles\"='kevin cao melody liang';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"previous_winners\" (\n \"year\" real,\n \"men_s_singles\" text,\n \"women_s_singles\" text,\n \"men_s_doubles\" text,\n \"women_s_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Which men's singles has mixed doubles with Chen Hung-Ling Chou Chia-Chi?"
},
{
"role": "assistant",
"content": "SELECT \"men_s_singles\" FROM \"previous_winners\" WHERE \"mixed_doubles\"='chen hung-ling chou chia-chi';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What attendance is dated february 27?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"attendance\") FROM \"game_log\" WHERE \"date\"='february 27';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What date has 37 points?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"points\"=37;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"record\" text,\n \"streak\" text\n);\n\nQuestion: Who was the Team that was played against on February 24 and a game after game 55?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"season_schedule\" WHERE \"game\">55 AND \"date\"='february 24';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"country\" text,\n \"mark\" text\n);\n\nQuestion: what is the name when the lane is less than 4 and mark is 52.64?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"heats\" WHERE \"lane\"<4 AND \"mark\"='52.64';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"country\" text,\n \"mark\" text\n);\n\nQuestion: what is the number of times that the heat is 3 and the name is cxhristy ekpukhon ihunaegbo?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"lane\") FROM \"heats\" WHERE \"heat\"=3 AND \"name\"='cxhristy ekpukhon ihunaegbo';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group_1\" (\n \"match_no\" real,\n \"date\" text,\n \"time\" text,\n \"score\" text,\n \"venue\" text,\n \"match_report\" text\n);\n\nQuestion: Name the Score which has a Time of 18:00 and a Venue of african union?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"group_1\" WHERE \"time\"='18:00' AND \"venue\"='african union';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group_1\" (\n \"match_no\" real,\n \"date\" text,\n \"time\" text,\n \"score\" text,\n \"venue\" text,\n \"match_report\" text\n);\n\nQuestion: Name the Venue which has a Score of 8 \u2013 1?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"group_1\" WHERE \"score\"='8 \u2013 1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What is 2nd Leg, when 1st Leg is \"SGM Basso Molise (Molise)\"?"
},
{
"role": "assistant",
"content": "SELECT \"2nd_leg\" FROM \"first_round\" WHERE \"1st_leg\"='sgm basso molise (molise)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What is 2nd Leg, when Team 1 is \"H\"?"
},
{
"role": "assistant",
"content": "SELECT \"2nd_leg\" FROM \"first_round\" WHERE \"team_1\"='h';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"records\" (\n \"score\" text,\n \"batsmen\" text,\n \"against\" text,\n \"location\" text,\n \"year\" text\n);\n\nQuestion: Who are the Batsmen from the year 2002?"
},
{
"role": "assistant",
"content": "SELECT \"batsmen\" FROM \"records\" WHERE \"year\"='2002';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"records\" (\n \"score\" text,\n \"batsmen\" text,\n \"against\" text,\n \"location\" text,\n \"year\" text\n);\n\nQuestion: What score did the year 1948 have?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"records\" WHERE \"year\"='1948';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"records\" (\n \"score\" text,\n \"batsmen\" text,\n \"against\" text,\n \"location\" text,\n \"year\" text\n);\n\nQuestion: Who is the Batsman from the year 1982?"
},
{
"role": "assistant",
"content": "SELECT \"batsmen\" FROM \"records\" WHERE \"year\"='1982';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"records\" (\n \"score\" text,\n \"batsmen\" text,\n \"against\" text,\n \"location\" text,\n \"year\" text\n);\n\nQuestion: What is the score in 1929?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"records\" WHERE \"year\"='1929';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"records\" (\n \"score\" text,\n \"batsmen\" text,\n \"against\" text,\n \"location\" text,\n \"year\" text\n);\n\nQuestion: Who was the batsmen at the Brit Oval location?"
},
{
"role": "assistant",
"content": "SELECT \"batsmen\" FROM \"records\" WHERE \"location\"='the brit oval';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"built\" text,\n \"listed\" text,\n \"location\" text,\n \"county\" text\n);\n\nQuestion: What year was the bridge in Kent built?"
},
{
"role": "assistant",
"content": "SELECT \"built\" FROM \"references\" WHERE \"county\"='kent';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"built\" text,\n \"listed\" text,\n \"location\" text,\n \"county\" text\n);\n\nQuestion: In which county is East Providence?"
},
{
"role": "assistant",
"content": "SELECT \"county\" FROM \"references\" WHERE \"location\"='east providence';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"built\" text,\n \"listed\" text,\n \"location\" text,\n \"county\" text\n);\n\nQuestion: What county had a bridge biult in 1884?"
},
{
"role": "assistant",
"content": "SELECT \"county\" FROM \"references\" WHERE \"built\"='1884';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What is the Place of the Player with a Score of 68-73-66-74=281?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"final_round\" WHERE \"score\"='68-73-66-74=281';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What is the Place of the Player with 122,100 Money and a Score of 68-70-68-74=280?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"final_round\" WHERE \"money\">'122,100' AND \"score\"='68-70-68-74=280';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What Country's Player scored 71-69-70-71=281?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"final_round\" WHERE \"score\"='71-69-70-71=281';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What is T5 Place Vijay Singh's To par?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"final_round\" WHERE \"place\"='t5' AND \"player\"='vijay singh';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is Score, when Player is \"Bob Murphy\"?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"second_round\" WHERE \"player\"='bob murphy';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is Player, when To Par is \"+1\", when Country is \"United States\", and when Score is \"71-70=141\"?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"second_round\" WHERE \"to_par\"='+1' AND \"country\"='united states' AND \"score\"='71-70=141';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is Score, when Place is \"T8\", and when Player is \"Orville Moody\"?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"second_round\" WHERE \"place\"='t8' AND \"player\"='orville moody';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is Score, when Player is \"Deane Beman\"?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"second_round\" WHERE \"player\"='deane beman';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is Country, when Player is \"Jack Nicklaus\"?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"second_round\" WHERE \"player\"='jack nicklaus';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the Country, when Place is \"1\"?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"second_round\" WHERE \"place\"='1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards\" (\n \"year\" real,\n \"category\" text,\n \"genre\" text,\n \"title\" text,\n \"result\" text\n);\n\nQuestion: WHAT IS THE RESULT FOR best urban/alternative performance, IN 2003 OR GREATER?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"awards\" WHERE \"category\"='best urban/alternative performance' AND \"year\">2003;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards\" (\n \"year\" real,\n \"category\" text,\n \"genre\" text,\n \"title\" text,\n \"result\" text\n);\n\nQuestion: WHAT IS THE TITLE WITH CATEGORY OF best r&b song?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"awards\" WHERE \"category\"='best r&b song';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards\" (\n \"year\" real,\n \"category\" text,\n \"genre\" text,\n \"title\" text,\n \"result\" text\n);\n\nQuestion: WHAT IS THE RESULT FOR 2003, IN best urban/alternative performance?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"awards\" WHERE \"year\"=2003 AND \"category\"='best urban/alternative performance';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards\" (\n \"year\" real,\n \"category\" text,\n \"genre\" text,\n \"title\" text,\n \"result\" text\n);\n\nQuestion: WHAT IS THE YEAR OF FLOETIC?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"year\") FROM \"awards\" WHERE \"title\"='floetic';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the highest assists when the nuggets record was 2-4?"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"record\"='2-4';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the highest assists in game 3?"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"game\"=3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: What is Home Team, when Home Team Score is 22.15 (147)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_of_16\" WHERE \"home_team_score\"='22.15 (147)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: What is Time, when Ground is Waverley Park, and when Away Team is Footscray?"
},
{
"role": "assistant",
"content": "SELECT \"time\" FROM \"round_of_16\" WHERE \"ground\"='waverley park' 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 \"round_of_16\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: What is Away Team, when Ground is Waverley Park, and when Away Team Score is 10.14 (74)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_of_16\" WHERE \"ground\"='waverley park' AND \"away_team_score\"='10.14 (74)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: What is Ground, when Away Team is Sydney?"
},
{
"role": "assistant",
"content": "SELECT \"ground\" FROM \"round_of_16\" WHERE \"away_team\"='sydney';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: What is Date, when Home Team is Richmond?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_of_16\" 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_of_16\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: What is Home Team Score, when Time is 12:00 PM, and when Ground is Waverley Park?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_of_16\" WHERE \"time\"='12:00 pm' AND \"ground\"='waverley park';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_s_doubles_13_finals_13_titles\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: What is the highest year for the US Open?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"year\") FROM \"women_s_doubles_13_finals_13_titles\" WHERE \"championship\"='us open';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"result\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: What is Result, when Week is 16?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"season_schedule\" WHERE \"week\"=16;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"result\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: What is Record, when Attendance is 30,110?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"season_schedule\" WHERE \"attendance\"='30,110';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"result\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: What is Date, when Opponent is At Saskatchewan Roughriders?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"season_schedule\" WHERE \"opponent\"='at saskatchewan roughriders';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schools\" (\n \"school_name\" text,\n \"address\" text,\n \"students\" real,\n \"grades\" text,\n \"2007_api\" real\n);\n\nQuestion: Which grades have a 2007 API of 734?"
},
{
"role": "assistant",
"content": "SELECT \"grades\" FROM \"schools\" WHERE \"2007_api\"=734;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schools\" (\n \"school_name\" text,\n \"address\" text,\n \"students\" real,\n \"grades\" text,\n \"2007_api\" real\n);\n\nQuestion: Which School name has students smaller than 389, and grades of 10-12?"
},
{
"role": "assistant",
"content": "SELECT \"school_name\" FROM \"schools\" WHERE \"students\"<389 AND \"grades\"='10-12';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schools\" (\n \"school_name\" text,\n \"address\" text,\n \"students\" real,\n \"grades\" text,\n \"2007_api\" real\n);\n\nQuestion: Which grades have students smaller than 430, and a 2007 API of 510?"
},
{
"role": "assistant",
"content": "SELECT \"grades\" FROM \"schools\" WHERE \"students\"<430 AND \"2007_api\"=510;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_19\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"crowd\" real,\n \"box_score\" text,\n \"report\" text\n);\n\nQuestion: What was the score of the game where the home team was the cairns taipans?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"round_19\" WHERE \"home_team\"='cairns taipans';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_19\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"crowd\" real,\n \"box_score\" text,\n \"report\" text\n);\n\nQuestion: What was the score of the game where the adelaide 36ers were the home team?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"round_19\" WHERE \"home_team\"='adelaide 36ers';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_19\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"crowd\" real,\n \"box_score\" text,\n \"report\" text\n);\n\nQuestion: What was the score of the game where the venue was cairns convention centre?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"round_19\" WHERE \"venue\"='cairns convention centre';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.