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 \"jacopetti_and_prosperi\" (\n \"title\" text,\n \"year\" real,\n \"country\" text,\n \"music\" text,\n \"uncut_run_time\" text\n);\n\nQuestion: What music is in the film before 1962?"
},
{
"role": "assistant",
"content": "SELECT \"music\" FROM \"jacopetti_and_prosperi\" WHERE \"year\"=1962;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which home team scored 15.16 (106)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_10\" WHERE \"home_team_score\"='15.16 (106)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which team played as the home team when north melbourne played as away?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_10\" WHERE \"away_team\"='north melbourne';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When the away team scored 7.13 (55), who were they playing?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_10\" WHERE \"away_team_score\"='7.13 (55)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_10\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When the home team scored 19.10 (124), what was the total crowd number?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"crowd\") FROM \"round_10\" WHERE \"home_team_score\"='19.10 (124)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: what is the position of pick #53?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"round_six\" WHERE \"pick_num\"=53;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: what is the position for andrew paopao?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"round_six\" WHERE \"player\"='andrew paopao';"
}
] |
[
{
"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: In which venue is South Melbourne the home team?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_11\" WHERE \"home_team\"='south melbourne';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_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: In the game where the home team scored 12.14 (86), what was the total crowd number?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"crowd\") FROM \"round_11\" WHERE \"home_team_score\"='12.14 (86)';"
}
] |
[
{
"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 South Melbourne was the home team, who was the away team?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_11\" WHERE \"home_team\"='south melbourne';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_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 venue is Hawthorn the home team at?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_11\" 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 \"teams\" (\n \"team\" text,\n \"city_area\" text,\n \"arena\" text,\n \"capacity\" text,\n \"last_season\" text\n);\n\nQuestion: What is the capacity for the arena in Chester?"
},
{
"role": "assistant",
"content": "SELECT \"capacity\" FROM \"teams\" WHERE \"city_area\"='chester';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"team\" text,\n \"city_area\" text,\n \"arena\" text,\n \"capacity\" text,\n \"last_season\" text\n);\n\nQuestion: Which arena has a capactiy of 1,100?"
},
{
"role": "assistant",
"content": "SELECT \"arena\" FROM \"teams\" WHERE \"capacity\"='1,100';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"team\" text,\n \"city_area\" text,\n \"arena\" text,\n \"capacity\" text,\n \"last_season\" text\n);\n\nQuestion: What is the last season that the Scottish Rocks played?"
},
{
"role": "assistant",
"content": "SELECT \"last_season\" FROM \"teams\" WHERE \"team\"='scottish rocks';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"team\" text,\n \"city_area\" text,\n \"arena\" text,\n \"capacity\" text,\n \"last_season\" text\n);\n\nQuestion: Which arena has the Milton Keynes Lions and a capacity of 800?"
},
{
"role": "assistant",
"content": "SELECT \"arena\" FROM \"teams\" WHERE \"capacity\"='800' AND \"team\"='milton keynes lions';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"team\" text,\n \"city_area\" text,\n \"arena\" text,\n \"capacity\" text,\n \"last_season\" text\n);\n\nQuestion: What is the last season the Worcester Wolves played?"
},
{
"role": "assistant",
"content": "SELECT \"last_season\" FROM \"teams\" WHERE \"team\"='worcester wolves';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"team\" text,\n \"city_area\" text,\n \"arena\" text,\n \"capacity\" text,\n \"last_season\" text\n);\n\nQuestion: Which team is from Birmingham & Telford?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"teams\" WHERE \"city_area\"='birmingham & telford';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"leaders\" (\n \"rank\" real,\n \"player\" text,\n \"country\" text,\n \"earnings\" real,\n \"events\" real,\n \"wins\" real\n);\n\nQuestion: Who has the least wins when ranked above 3 with over 10 events?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"wins\") FROM \"leaders\" WHERE \"rank\"<3 AND \"events\">10;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"leaders\" (\n \"rank\" real,\n \"player\" text,\n \"country\" text,\n \"earnings\" real,\n \"events\" real,\n \"wins\" real\n);\n\nQuestion: How many wins for billy casper over 8 events and uner $71,979 in earnings?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"wins\") FROM \"leaders\" WHERE \"events\"=8 AND \"player\"='billy casper' AND \"earnings\"<'71,979';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"leaders\" (\n \"rank\" real,\n \"player\" text,\n \"country\" text,\n \"earnings\" real,\n \"events\" real,\n \"wins\" real\n);\n\nQuestion: What is the lowest rank for a player earning $71,979?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rank\") FROM \"leaders\" WHERE \"earnings\"<'71,979';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"region\" text,\n \"capital\" text,\n \"area_km\" text,\n \"area_sq_mi\" text,\n \"population\" text,\n \"gdp_bn\" text\n);\n\nQuestion: What was the Gdp (bn) for the region that has ioannina as its Capital?"
},
{
"role": "assistant",
"content": "SELECT \"gdp_bn\" FROM \"administrative_divisions\" WHERE \"capital\"='ioannina';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"region\" text,\n \"capital\" text,\n \"area_km\" text,\n \"area_sq_mi\" text,\n \"population\" text,\n \"gdp_bn\" text\n);\n\nQuestion: Which Region has an Area of 9,451km\u00b2?"
},
{
"role": "assistant",
"content": "SELECT \"region\" FROM \"administrative_divisions\" WHERE \"area_km\"='9,451';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"region\" text,\n \"capital\" text,\n \"area_km\" text,\n \"area_sq_mi\" text,\n \"population\" text,\n \"gdp_bn\" text\n);\n\nQuestion: Which capital has a population of 308,610?"
},
{
"role": "assistant",
"content": "SELECT \"capital\" FROM \"administrative_divisions\" WHERE \"population\"='308,610';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"region\" text,\n \"capital\" text,\n \"area_km\" text,\n \"area_sq_mi\" text,\n \"population\" text,\n \"gdp_bn\" text\n);\n\nQuestion: Which Region has an area of 14,037km\u00b2?"
},
{
"role": "assistant",
"content": "SELECT \"region\" FROM \"administrative_divisions\" WHERE \"area_km\"='14,037';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"region\" text,\n \"capital\" text,\n \"area_km\" text,\n \"area_sq_mi\" text,\n \"population\" text,\n \"gdp_bn\" text\n);\n\nQuestion: What is the GDP for the region with an area of 7,263 sq. mi.?"
},
{
"role": "assistant",
"content": "SELECT \"gdp_bn\" FROM \"administrative_divisions\" WHERE \"area_sq_mi\"='7,263';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"region\" text,\n \"capital\" text,\n \"area_km\" text,\n \"area_sq_mi\" text,\n \"population\" text,\n \"gdp_bn\" text\n);\n\nQuestion: What is the population for the region with an area of 6,004 sq. Mi.?"
},
{
"role": "assistant",
"content": "SELECT \"population\" FROM \"administrative_divisions\" WHERE \"area_sq_mi\"='6,004';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_4_2001_2002\" (\n \"episode_num\" real,\n \"num_in_season\" real,\n \"episode_name\" text,\n \"airdate\" text,\n \"location\" text\n);\n\nQuestion: What is the lowest episode # with an air date of October 31, 2001?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"episode_num\") FROM \"season_4_2001_2002\" WHERE \"airdate\"='october 31, 2001';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_4_2001_2002\" (\n \"episode_num\" real,\n \"num_in_season\" real,\n \"episode_name\" text,\n \"airdate\" text,\n \"location\" text\n);\n\nQuestion: What is the average episode # located in Tanzania and whose # in season is larger than 5?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"episode_num\") FROM \"season_4_2001_2002\" WHERE \"location\"='tanzania' AND \"num_in_season\">5;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_4_2001_2002\" (\n \"episode_num\" real,\n \"num_in_season\" real,\n \"episode_name\" text,\n \"airdate\" text,\n \"location\" text\n);\n\nQuestion: What is the average episode # with a name of the origin of Donnie (part 1)?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"episode_num\") FROM \"season_4_2001_2002\" WHERE \"episode_name\"='the origin of donnie (part 1)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_4_2001_2002\" (\n \"episode_num\" real,\n \"num_in_season\" real,\n \"episode_name\" text,\n \"airdate\" text,\n \"location\" text\n);\n\nQuestion: Which air date has 5 for # in season?"
},
{
"role": "assistant",
"content": "SELECT \"airdate\" FROM \"season_4_2001_2002\" WHERE \"num_in_season\"=5;"
}
] |
[
{
"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 venue is home for the Melbourne team?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_13\" WHERE \"home_team\"='melbourne';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_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 venue for the home team in Melbourne?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_13\" WHERE \"home_team\"='melbourne';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_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: Which venue has a home team that has a score of 18.16 (124)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_13\" WHERE \"home_team_score\"='18.16 (124)';"
}
] |
[
{
"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: Which home team played an away team that had a score of 16.15 (111)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_13\" WHERE \"away_team_score\"='16.15 (111)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_computer_system_emulators\" (\n \"name\" text,\n \"actual_version\" text,\n \"system\" text,\n \"platform\" text,\n \"license\" text\n);\n\nQuestion: Which License has a System of amiga, and a Name of pocketuae?"
},
{
"role": "assistant",
"content": "SELECT \"license\" FROM \"list_of_computer_system_emulators\" WHERE \"system\"='amiga' AND \"name\"='pocketuae';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_computer_system_emulators\" (\n \"name\" text,\n \"actual_version\" text,\n \"system\" text,\n \"platform\" text,\n \"license\" text\n);\n\nQuestion: What name has a License of gpl, and an Actual version of 0.8.29wip4?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"list_of_computer_system_emulators\" WHERE \"license\"='gpl' AND \"actual_version\"='0.8.29wip4';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_computer_system_emulators\" (\n \"name\" text,\n \"actual_version\" text,\n \"system\" text,\n \"platform\" text,\n \"license\" text\n);\n\nQuestion: Which platform has an Actual version of 0.147?"
},
{
"role": "assistant",
"content": "SELECT \"platform\" FROM \"list_of_computer_system_emulators\" WHERE \"actual_version\"='0.147';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_computer_system_emulators\" (\n \"name\" text,\n \"actual_version\" text,\n \"system\" text,\n \"platform\" text,\n \"license\" text\n);\n\nQuestion: Which name has a License of gpl, and a Platform of windows?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"list_of_computer_system_emulators\" WHERE \"license\"='gpl' AND \"platform\"='windows';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_computer_system_emulators\" (\n \"name\" text,\n \"actual_version\" text,\n \"system\" text,\n \"platform\" text,\n \"license\" text\n);\n\nQuestion: Which system is named mess?"
},
{
"role": "assistant",
"content": "SELECT \"system\" FROM \"list_of_computer_system_emulators\" WHERE \"name\"='mess';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_computer_system_emulators\" (\n \"name\" text,\n \"actual_version\" text,\n \"system\" text,\n \"platform\" text,\n \"license\" text\n);\n\nQuestion: Which Platform has an Actual version of 0.8.29?"
},
{
"role": "assistant",
"content": "SELECT \"platform\" FROM \"list_of_computer_system_emulators\" WHERE \"actual_version\"='0.8.29';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"nominated_work\" text,\n \"result\" text\n);\n\nQuestion: What's the earliest year that had a category of best supporting actress at the asian film awards?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"awards_and_nominations\" WHERE \"category\"='best supporting actress' AND \"award\"='asian film awards';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"nominated_work\" text,\n \"result\" text\n);\n\nQuestion: Which award show had the category of best supporting actress?"
},
{
"role": "assistant",
"content": "SELECT \"award\" FROM \"awards_and_nominations\" WHERE \"category\"='best supporting actress';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"nominated_work\" text,\n \"result\" text\n);\n\nQuestion: Did the nominated work of white valentine win an award?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"awards_and_nominations\" WHERE \"nominated_work\"='white valentine';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"nominated_work\" text,\n \"result\" text\n);\n\nQuestion: Which category was the berlin file up to win in 2013?"
},
{
"role": "assistant",
"content": "SELECT \"category\" FROM \"awards_and_nominations\" WHERE \"year\"=2013 AND \"nominated_work\"='the berlin file';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"overall\" (\n \"competition\" text,\n \"current_position_round\" text,\n \"final_position_round\" text,\n \"first_match\" text,\n \"last_match\" text\n);\n\nQuestion: What is the final position/round of the UEFA cup?"
},
{
"role": "assistant",
"content": "SELECT \"final_position_round\" FROM \"overall\" WHERE \"competition\"='uefa cup';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"overall\" (\n \"competition\" text,\n \"current_position_round\" text,\n \"final_position_round\" text,\n \"first_match\" text,\n \"last_match\" text\n);\n\nQuestion: When the final position/round is group stage, when is the last match?"
},
{
"role": "assistant",
"content": "SELECT \"last_match\" FROM \"overall\" WHERE \"final_position_round\"='group stage';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"u_s\" (\n \"title\" text,\n \"publisher\" text,\n \"first_year\" text,\n \"last_year\" text,\n \"genre\" text\n);\n\nQuestion: When did the DC Comics title that debuted in 1937 end?"
},
{
"role": "assistant",
"content": "SELECT \"last_year\" FROM \"u_s\" WHERE \"first_year\"='1937' AND \"publisher\"='dc comics';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"u_s\" (\n \"title\" text,\n \"publisher\" text,\n \"first_year\" text,\n \"last_year\" text,\n \"genre\" text\n);\n\nQuestion: Who published Weird War Tales?"
},
{
"role": "assistant",
"content": "SELECT \"publisher\" FROM \"u_s\" WHERE \"title\"='weird war tales';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"u_s\" (\n \"title\" text,\n \"publisher\" text,\n \"first_year\" text,\n \"last_year\" text,\n \"genre\" text\n);\n\nQuestion: When did the comic which came out in 1982 end?"
},
{
"role": "assistant",
"content": "SELECT \"last_year\" FROM \"u_s\" WHERE \"first_year\"='1982';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"u_s\" (\n \"title\" text,\n \"publisher\" text,\n \"first_year\" text,\n \"last_year\" text,\n \"genre\" text\n);\n\nQuestion: Which EC Comics title ran from 1950 to 1953?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"u_s\" WHERE \"first_year\"='1950' AND \"publisher\"='ec comics' AND \"last_year\"='1953';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"u_s\" (\n \"title\" text,\n \"publisher\" text,\n \"first_year\" text,\n \"last_year\" text,\n \"genre\" text\n);\n\nQuestion: What is the first year for Popgun?"
},
{
"role": "assistant",
"content": "SELECT \"first_year\" FROM \"u_s\" WHERE \"title\"='popgun';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: What's the region for an item on November 10, 2007 that's a cd?"
},
{
"role": "assistant",
"content": "SELECT \"region\" FROM \"release_history\" WHERE \"date\"='november 10, 2007' AND \"format\"='cd';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: What's the catalog number for a record from columbia formatted in a cd/dvd that's from the United States region?"
},
{
"role": "assistant",
"content": "SELECT \"catalog\" FROM \"release_history\" WHERE \"label\"='columbia' AND \"region\"='united states' AND \"format\"='cd/dvd';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: What's the catalog number for a December 11, 2007 record from columbia formatted in a that's from Canada?"
},
{
"role": "assistant",
"content": "SELECT \"catalog\" FROM \"release_history\" WHERE \"label\"='columbia' AND \"date\"='december 11, 2007' AND \"region\"='canada';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_22\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which team has an away score of 18.14 (122)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_22\" WHERE \"away_team_score\"='18.14 (122)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_22\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the average crowd size for an away team with a score of 14.19 (103)?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"crowd\") FROM \"round_22\" WHERE \"away_team_score\"='14.19 (103)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_22\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the average crowd size at Princes Park?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"crowd\") FROM \"round_22\" 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 \"drivers_and_constructors\" (\n \"entrant\" text,\n \"constructor\" text,\n \"chassis\" text,\n \"engine\" text,\n \"tyre\" text,\n \"driver\" text,\n \"rounds\" text,\n \"free_practice_driver_s\" text\n);\n\nQuestion: who is the constructor when the free practice driver(s) is n/a, the chassis is 005 and the driver is takuma sato?"
},
{
"role": "assistant",
"content": "SELECT \"constructor\" FROM \"drivers_and_constructors\" WHERE \"free_practice_driver_s\"='n/a' AND \"chassis\"='005' AND \"driver\"='takuma sato';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"drivers_and_constructors\" (\n \"entrant\" text,\n \"constructor\" text,\n \"chassis\" text,\n \"engine\" text,\n \"tyre\" text,\n \"driver\" text,\n \"rounds\" text,\n \"free_practice_driver_s\" text\n);\n\nQuestion: what is the rounds when the entrant is scuderia ferrari marlboro?"
},
{
"role": "assistant",
"content": "SELECT \"rounds\" FROM \"drivers_and_constructors\" WHERE \"entrant\"='scuderia ferrari marlboro';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"drivers_and_constructors\" (\n \"entrant\" text,\n \"constructor\" text,\n \"chassis\" text,\n \"engine\" text,\n \"tyre\" text,\n \"driver\" text,\n \"rounds\" text,\n \"free_practice_driver_s\" text\n);\n\nQuestion: what is the chassis when the entrant is mild seven renault f1 team and the driver is jarno trulli?"
},
{
"role": "assistant",
"content": "SELECT \"chassis\" FROM \"drivers_and_constructors\" WHERE \"entrant\"='mild seven renault f1 team' AND \"driver\"='jarno trulli';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"drivers_and_constructors\" (\n \"entrant\" text,\n \"constructor\" text,\n \"chassis\" text,\n \"engine\" text,\n \"tyre\" text,\n \"driver\" text,\n \"rounds\" text,\n \"free_practice_driver_s\" text\n);\n\nQuestion: what is the engine when the tyre is m and the driver is fernando alonso?"
},
{
"role": "assistant",
"content": "SELECT \"engine\" FROM \"drivers_and_constructors\" WHERE \"tyre\"='m' AND \"driver\"='fernando alonso';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"drivers_and_constructors\" (\n \"entrant\" text,\n \"constructor\" text,\n \"chassis\" text,\n \"engine\" text,\n \"tyre\" text,\n \"driver\" text,\n \"rounds\" text,\n \"free_practice_driver_s\" text\n);\n\nQuestion: who is the constructor when the driver is juan pablo montoya?"
},
{
"role": "assistant",
"content": "SELECT \"constructor\" FROM \"drivers_and_constructors\" WHERE \"driver\"='juan pablo montoya';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"receiving\" (\n \"player\" text,\n \"rec\" real,\n \"yards\" real,\n \"avg\" real,\n \"td_s\" real,\n \"long\" real\n);\n\nQuestion: What is the low TD for 49 longs and 1436 less yards?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"td_s\") FROM \"receiving\" WHERE \"long\"=49 AND \"yards\"<1436;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"receiving\" (\n \"player\" text,\n \"rec\" real,\n \"yards\" real,\n \"avg\" real,\n \"td_s\" real,\n \"long\" real\n);\n\nQuestion: What is the total count of TD longs more than 29?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"long\") FROM \"receiving\" WHERE \"td_s\">29;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"receiving\" (\n \"player\" text,\n \"rec\" real,\n \"yards\" real,\n \"avg\" real,\n \"td_s\" real,\n \"long\" real\n);\n\nQuestion: What is the toal rec with more than 27 and averages less than 10.8 and TDs more than 6?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"long\") FROM \"receiving\" WHERE \"rec\">27 AND \"avg\"<10.8 AND \"td_s\">6;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: How many people attended the game with a record of 86-56"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"attendance\") FROM \"game_log\" WHERE \"record\"='86-56';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Name the date that had a record of 90-60"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"record\"='90-60';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: On the game where the home team scored 9.9 (63) and the crowd exceeded 14,589, what was the date?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_2\" WHERE \"crowd\">'14,589' AND \"home_team_score\"='9.9 (63)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: On the game where the home team scored 9.9 (63), where was the venue."
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_2\" WHERE \"home_team_score\"='9.9 (63)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: On which date did the away team score 10.11 (71)?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_2\" WHERE \"away_team_score\"='10.11 (71)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"notable_sinclair_totals_throughout_the_h\" (\n \"weight_class_kg\" real,\n \"world_record_kg\" real,\n \"sinclair_coefficient\" real,\n \"sinclair_total\" real,\n \"rank\" real\n);\n\nQuestion: What was the highest Sinclair Total that had a rank of 3, but a World Record smaller than 217?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"sinclair_total\") FROM \"notable_sinclair_totals_throughout_the_h\" WHERE \"rank\"=3 AND \"world_record_kg\"<217;"
}
] |
[
{
"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 name of the venue that they away team Collingwood played at?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_1\" WHERE \"away_team\"='collingwood';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_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 score of the away team where the home team scored 14.8 (92)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_1\" WHERE \"home_team_score\"='14.8 (92)';"
}
] |
[
{
"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 name of the home team that scored 11.16 (82)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_1\" WHERE \"home_team_score\"='11.16 (82)';"
}
] |
[
{
"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 score of the away team whose opponent scored 14.8 (92)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_1\" WHERE \"home_team_score\"='14.8 (92)';"
}
] |
[
{
"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: On what date did the home team score 9.14 (68)?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_1\" WHERE \"home_team_score\"='9.14 (68)';"
}
] |
[
{
"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: How much did the away team St Kilda score?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_1\" 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_17\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What date did Carlton play as the away team?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_17\" WHERE \"away_team\"='carlton';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_17\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the home team's score at Windy Hill?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_17\" 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 \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What is the lowest grid value with fewer than 17 laps and constructor Sauber - Petronas?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"grid\") FROM \"classification\" WHERE \"laps\"<17 AND \"constructor\"='sauber - petronas';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: Which Time/Retired entry has greater than 51 laps and driver Cristiano da Matta?"
},
{
"role": "assistant",
"content": "SELECT \"time_retired\" FROM \"classification\" WHERE \"laps\">51 AND \"driver\"='cristiano da matta';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_standing\" (\n \"team\" text,\n \"games_played\" real,\n \"wins\" real,\n \"losses\" real,\n \"ties\" real,\n \"goals_for\" real,\n \"goals_against\" real\n);\n\nQuestion: How many ties did the Montreal Victorias have with a GA of less than 24?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"ties\") FROM \"final_standing\" WHERE \"team\"='montreal victorias' AND \"goals_against\"<24;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"period_of_differently_named_meetings\" (\n \"year\" real,\n \"event\" text,\n \"record\" text,\n \"athlete\" text,\n \"nationality\" text\n);\n\nQuestion: How many years was the record 3:40.8?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"year\") FROM \"period_of_differently_named_meetings\" WHERE \"record\"='3:40.8';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"period_of_differently_named_meetings\" (\n \"year\" real,\n \"event\" text,\n \"record\" text,\n \"athlete\" text,\n \"nationality\" text\n);\n\nQuestion: What event is before 1964 and has an athlete of l\u00e1szl\u00f3 t\u00e1bori gunnar nielsen?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"period_of_differently_named_meetings\" WHERE \"year\"<1964 AND \"athlete\"='l\u00e1szl\u00f3 t\u00e1bori gunnar nielsen';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"march\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Who is the leading scorer of the game where the Kings is the home team?"
},
{
"role": "assistant",
"content": "SELECT \"leading_scorer\" FROM \"march\" WHERE \"home\"='kings';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"march\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Who is the visitor team of the game on March 2, 2008?"
},
{
"role": "assistant",
"content": "SELECT \"visitor\" FROM \"march\" WHERE \"date\"='march 2, 2008';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"march\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What is the attendance total of the game with the Lakers as the home team?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"attendance\") FROM \"march\" WHERE \"home\"='lakers';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff_a\" text,\n \"game_site\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: Which week had 39,056 people in attendance?"
},
{
"role": "assistant",
"content": "SELECT \"week\" FROM \"schedule\" WHERE \"attendance\"='39,056';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff_a\" text,\n \"game_site\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the kickoff time for week 3?"
},
{
"role": "assistant",
"content": "SELECT \"kickoff_a\" FROM \"schedule\" WHERE \"week\"='3';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff_a\" text,\n \"game_site\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the kickoff time for the Hubert H. Humphrey Metrodome?"
},
{
"role": "assistant",
"content": "SELECT \"kickoff_a\" FROM \"schedule\" WHERE \"game_site\"='hubert h. humphrey metrodome';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff_a\" text,\n \"game_site\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the result when the Indianapolis Colts are the opponents?"
},
{
"role": "assistant",
"content": "SELECT \"result\" 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\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff_a\" text,\n \"game_site\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: Who was the opponent on September 13, 1992?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"date\"='september 13, 1992';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff_a\" text,\n \"game_site\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the result on November 1, 1992?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"date\"='november 1, 1992';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_14\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the away score when the home team was Melbourne?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_14\" WHERE \"home_team\"='melbourne';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_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: Who played Collingwood?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_14\" WHERE \"home_team\"='collingwood';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"april\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Who was the visiting team on April 8 where more than 19,141 were in attendance?"
},
{
"role": "assistant",
"content": "SELECT \"visitor\" FROM \"april\" WHERE \"attendance\">'19,141' AND \"date\"='april 8';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: How big was the crowd for Essendon?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"crowd\") FROM \"round_2\" WHERE \"home_team\"='essendon';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which team played against North Melbourne as the home team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_2\" WHERE \"away_team\"='north melbourne';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which home team plays at Punt Road Oval?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_2\" WHERE \"venue\"='punt road oval';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which team plays at Punt Road Oval?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_2\" WHERE \"venue\"='punt road oval';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.