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 \"appearances\" (\n \"name\" text,\n \"years\" text,\n \"league\" text,\n \"fa_cup\" text,\n \"league_cup\" text,\n \"europe\" text,\n \"other_a\" text,\n \"total\" text\n);\n\nQuestion: which fa cups had a total of 565 (7)?"
},
{
"role": "assistant",
"content": "SELECT \"fa_cup\" FROM \"appearances\" WHERE \"total\"='565 (7)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"appearances\" (\n \"name\" text,\n \"years\" text,\n \"league\" text,\n \"fa_cup\" text,\n \"league_cup\" text,\n \"europe\" text,\n \"other_a\" text,\n \"total\" text\n);\n\nQuestion: which leage had a league cup of 46 (1)"
},
{
"role": "assistant",
"content": "SELECT \"league\" FROM \"appearances\" WHERE \"league_cup\"='46 (1)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"appearances\" (\n \"name\" text,\n \"years\" text,\n \"league\" text,\n \"fa_cup\" text,\n \"league_cup\" text,\n \"europe\" text,\n \"other_a\" text,\n \"total\" text\n);\n\nQuestion: which years had other a of 8 (1)?"
},
{
"role": "assistant",
"content": "SELECT \"years\" FROM \"appearances\" WHERE \"other_a\"='8 (1)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"overall_scorers\" (\n \"name\" text,\n \"years\" text,\n \"league\" real,\n \"fa_cup\" real,\n \"league_cup\" real,\n \"europe\" real,\n \"other_a\" real,\n \"total\" text\n);\n\nQuestion: What name is associated with League 142?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"overall_scorers\" WHERE \"league\"=142;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"overall_scorers\" (\n \"name\" text,\n \"years\" text,\n \"league\" real,\n \"fa_cup\" real,\n \"league_cup\" real,\n \"europe\" real,\n \"other_a\" real,\n \"total\" text\n);\n\nQuestion: How many values of Other A correspond to Tommy Johnson Category:Articles with hCards?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"other_a\") FROM \"overall_scorers\" WHERE \"name\"='Tommy Johnson Category:Articles with hCards';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"overall_scorers\" (\n \"name\" text,\n \"years\" text,\n \"league\" real,\n \"fa_cup\" real,\n \"league_cup\" real,\n \"europe\" real,\n \"other_a\" real,\n \"total\" text\n);\n\nQuestion: How many different Leagues are associated with Billy Meredith Category:Articles with hCards?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"league\") FROM \"overall_scorers\" WHERE \"name\"='Billy Meredith Category:Articles with hCards';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"overall_scorers\" (\n \"name\" text,\n \"years\" text,\n \"league\" real,\n \"fa_cup\" real,\n \"league_cup\" real,\n \"europe\" real,\n \"other_a\" real,\n \"total\" text\n);\n\nQuestion: How many separate values for Years are associated with FA Cup of 5?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"years\") FROM \"overall_scorers\" WHERE \"fa_cup\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"overall_scorers\" (\n \"name\" text,\n \"years\" text,\n \"league\" real,\n \"fa_cup\" real,\n \"league_cup\" real,\n \"europe\" real,\n \"other_a\" real,\n \"total\" text\n);\n\nQuestion: What years have a total of 139?"
},
{
"role": "assistant",
"content": "SELECT \"years\" FROM \"overall_scorers\" WHERE \"total\"='139';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"main_countries_and_territories_data\" (\n \"country_territory\" text,\n \"area_km\" real,\n \"population\" real,\n \"pop_density_km\" real,\n \"gdp_millions_of_usd_2009\" real,\n \"gdp_per_capita_usd_2009_2011\" real,\n \"capital\" text\n);\n\nQuestion: What was the GDP (in millions USD) of Indonesia in 2009?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"gdp_millions_of_usd_2009\") FROM \"main_countries_and_territories_data\" WHERE \"country_territory\"='Indonesia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"main_countries_and_territories_data\" (\n \"country_territory\" text,\n \"area_km\" real,\n \"population\" real,\n \"pop_density_km\" real,\n \"gdp_millions_of_usd_2009\" real,\n \"gdp_per_capita_usd_2009_2011\" real,\n \"capital\" text\n);\n\nQuestion: What was the GDP (in millions USD) of Hong Kong in 2009?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"gdp_millions_of_usd_2009\") FROM \"main_countries_and_territories_data\" WHERE \"country_territory\"='Hong Kong';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"position\" text,\n \"number\" text,\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"class\" text,\n \"hometown\" text,\n \"games\" real\n);\n\nQuestion: How tall is Braxton Kelley?"
},
{
"role": "assistant",
"content": "SELECT \"height\" FROM \"roster\" WHERE \"name\"='Braxton Kelley';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"position\" text,\n \"number\" text,\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"class\" text,\n \"hometown\" text,\n \"games\" real\n);\n\nQuestion: what class is Braxton Kelley in?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"class\") FROM \"roster\" WHERE \"name\"='Braxton Kelley';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"position\" text,\n \"number\" text,\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"class\" text,\n \"hometown\" text,\n \"games\" real\n);\n\nQuestion: how many hometowns use the position of fs?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"hometown\") FROM \"roster\" WHERE \"position\"='FS';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"position\" text,\n \"number\" text,\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"class\" text,\n \"hometown\" text,\n \"games\" real\n);\n\nQuestion: who is number 98?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"roster\" WHERE \"number\"='98';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: How many games were played against the Chicago Bears?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"record\") FROM \"schedule\" WHERE \"opponent\"='Chicago Bears';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What is the result of the game against the Chicago Bears?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"opponent\"='Chicago Bears';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What was the final score of the game on October 4, 1970?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"date\"='October 4, 1970';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: Who was the team's opponent of October 25, 1970?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"date\"='October 25, 1970';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"brazilian_clubs_in_international_competi\" (\n \"team\" text,\n \"copa_libertadores_1998\" text,\n \"copa_mercosur_1998\" text,\n \"copa_conmebol_1998\" text,\n \"copa_interamericana_1998\" text,\n \"recopa_sudamericana_1998\" text,\n \"intercontinental_cup_1998\" text\n);\n\nQuestion: Did Flamengo play in the Recopa Sudamericana in 1998"
},
{
"role": "assistant",
"content": "SELECT \"recopa_sudamericana_1998\" FROM \"brazilian_clubs_in_international_competi\" WHERE \"team\"='Flamengo';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"brazilian_clubs_in_international_competi\" (\n \"team\" text,\n \"copa_libertadores_1998\" text,\n \"copa_mercosur_1998\" text,\n \"copa_conmebol_1998\" text,\n \"copa_interamericana_1998\" text,\n \"recopa_sudamericana_1998\" text,\n \"intercontinental_cup_1998\" text\n);\n\nQuestion: What were Cruzeiro results in the Copa Mercosur in 1998"
},
{
"role": "assistant",
"content": "SELECT \"copa_mercosur_1998\" FROM \"brazilian_clubs_in_international_competi\" WHERE \"team\"='Cruzeiro';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"team_nickname\" text,\n \"tenure\" text,\n \"new_conference\" text,\n \"new_classification\" text\n);\n\nQuestion: Where is California Lutheran University located?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location\") FROM \"former_members\" WHERE \"institution\"='California Lutheran University';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"team_nickname\" text,\n \"tenure\" text,\n \"new_conference\" text,\n \"new_classification\" text\n);\n\nQuestion: What is the new classification for the University of Arizona Western in the Collegiate Lacrosse League?"
},
{
"role": "assistant",
"content": "SELECT \"new_classification\" FROM \"former_members\" WHERE \"institution\"='University of Arizona';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"team_nickname\" text,\n \"tenure\" text,\n \"new_conference\" text,\n \"new_classification\" text\n);\n\nQuestion: What is California State University, Hayward's new conference for Western Collegiate Lacrosse?"
},
{
"role": "assistant",
"content": "SELECT \"new_conference\" FROM \"former_members\" WHERE \"institution\"='California State University, Hayward';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"team_nickname\" text,\n \"tenure\" text,\n \"new_conference\" text,\n \"new_classification\" text\n);\n\nQuestion: Which new conference is the Toreros Western Collegiate Lacrosse team playing in?"
},
{
"role": "assistant",
"content": "SELECT \"new_conference\" FROM \"former_members\" WHERE \"team_nickname\"='Toreros';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2006_07_season_as_a_five_year_old\" (\n \"result\" text,\n \"date\" text,\n \"race\" text,\n \"venue\" text,\n \"group\" text,\n \"distance\" text,\n \"weight_kg\" text,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: In Ascot (UK), what was the result?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"2006_07_season_as_a_five_year_old\" WHERE \"venue\"='Ascot (UK)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2006_07_season_as_a_five_year_old\" (\n \"result\" text,\n \"date\" text,\n \"race\" text,\n \"venue\" text,\n \"group\" text,\n \"distance\" text,\n \"weight_kg\" text,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: How many different jockeys ran on 17 Feb 2007?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"jockey\") FROM \"2006_07_season_as_a_five_year_old\" WHERE \"date\"='17 Feb 2007';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2006_07_season_as_a_five_year_old\" (\n \"result\" text,\n \"date\" text,\n \"race\" text,\n \"venue\" text,\n \"group\" text,\n \"distance\" text,\n \"weight_kg\" text,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: How many venues were used on 10 Mar 2007?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"2006_07_season_as_a_five_year_old\" WHERE \"date\"='10 Mar 2007';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2006_07_season_as_a_five_year_old\" (\n \"result\" text,\n \"date\" text,\n \"race\" text,\n \"venue\" text,\n \"group\" text,\n \"distance\" text,\n \"weight_kg\" text,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: How many jockeys are listed running at the Sir Rupert Clarke Stakes?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"jockey\") FROM \"2006_07_season_as_a_five_year_old\" WHERE \"race\"='Sir Rupert Clarke Stakes';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2006_07_season_as_a_five_year_old\" (\n \"result\" text,\n \"date\" text,\n \"race\" text,\n \"venue\" text,\n \"group\" text,\n \"distance\" text,\n \"weight_kg\" text,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: How many venues had a race called the Australia Stakes?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"venue\") FROM \"2006_07_season_as_a_five_year_old\" WHERE \"race\"='Australia Stakes';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2004_05_season_as_a_three_year_old\" (\n \"result\" text,\n \"date\" text,\n \"race\" text,\n \"venue\" text,\n \"group\" text,\n \"distance\" text,\n \"weight_kg\" text,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: Where was the 1400 m held?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"2004_05_season_as_a_three_year_old\" WHERE \"distance\"='1400 m';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2004_05_season_as_a_three_year_old\" (\n \"result\" text,\n \"date\" text,\n \"race\" text,\n \"venue\" text,\n \"group\" text,\n \"distance\" text,\n \"weight_kg\" text,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: What is the group name when 3yo hcp restricted maiden was raced?"
},
{
"role": "assistant",
"content": "SELECT \"group\" FROM \"2004_05_season_as_a_three_year_old\" WHERE \"race\"='3yo Hcp Restricted Maiden';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2004_05_season_as_a_three_year_old\" (\n \"result\" text,\n \"date\" text,\n \"race\" text,\n \"venue\" text,\n \"group\" text,\n \"distance\" text,\n \"weight_kg\" text,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: When did the 55 kg participant race?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"2004_05_season_as_a_three_year_old\" WHERE \"weight_kg\"='55';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: Name the number of weeks for 50073 attendance"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"week\") FROM \"schedule\" WHERE \"attendance\"=50073;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: Name the result for milwaukee county stadium"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"game_site\"='Milwaukee County Stadium';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What was the record when the game was played at Cleveland Municipal Stadium?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule\" WHERE \"game_site\"='Cleveland Municipal Stadium';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What was the game date in week 13?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"week\"=13;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: Where did the team play the Detroit Lions?"
},
{
"role": "assistant",
"content": "SELECT \"game_site\" FROM \"schedule\" WHERE \"opponent\"='Detroit Lions';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What week of the season did the date December 2, 1962 fall on?"
},
{
"role": "assistant",
"content": "SELECT \"week\" FROM \"schedule\" WHERE \"date\"='December 2, 1962';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: what is the result for October 14, 1956?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"date\"='October 14, 1956';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: Name the game site for week 6"
},
{
"role": "assistant",
"content": "SELECT \"game_site\" FROM \"schedule\" WHERE \"week\"=6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: Name the number of weeks for san francisco 49ers"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"week\") FROM \"schedule\" WHERE \"opponent\"='San Francisco 49ers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: Name the most attendance for game site for los angeles memorial coliseum"
},
{
"role": "assistant",
"content": "SELECT MAX(\"attendance\") FROM \"schedule\" WHERE \"game_site\"='Los Angeles Memorial Coliseum';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: what's the\u00a0result\u00a0with\u00a0record\u00a0being 0\u20131"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"record\"='0\u20131';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: what's the\u00a0game site\u00a0with\u00a0result\u00a0being l 24\u201334"
},
{
"role": "assistant",
"content": "SELECT \"game_site\" FROM \"schedule\" WHERE \"result\"='L 24\u201334';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: how many\u00a0result\u00a0with\u00a0date\u00a0being october 25, 1964"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"result\") FROM \"schedule\" WHERE \"date\"='October 25, 1964';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: how many\u00a0opponent\u00a0with\u00a0date\u00a0being october 25, 1964"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"opponent\") FROM \"schedule\" WHERE \"date\"='October 25, 1964';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"municipalities\" (\n \"administrative_division\" text,\n \"area_km\" text,\n \"population_2000_census\" real,\n \"population_2010_census\" real,\n \"population_density_2010_km\" real\n);\n\nQuestion: Name the population 2010 census for population 2000 census of 920599"
},
{
"role": "assistant",
"content": "SELECT \"population_2010_census\" FROM \"municipalities\" WHERE \"population_2000_census\"=920599;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"municipalities\" (\n \"administrative_division\" text,\n \"area_km\" text,\n \"population_2000_census\" real,\n \"population_2010_census\" real,\n \"population_density_2010_km\" real\n);\n\nQuestion: Name the total number of population 2000 census for mesquita"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"population_2000_census\") FROM \"municipalities\" WHERE \"administrative_division\"='Mesquita';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"municipalities\" (\n \"administrative_division\" text,\n \"area_km\" text,\n \"population_2000_census\" real,\n \"population_2010_census\" real,\n \"population_density_2010_km\" real\n);\n\nQuestion: Name the population 2000 census for 77 area"
},
{
"role": "assistant",
"content": "SELECT \"population_2000_census\" FROM \"municipalities\" WHERE \"area_km\"='77';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"municipalities\" (\n \"administrative_division\" text,\n \"area_km\" text,\n \"population_2000_census\" real,\n \"population_2010_census\" real,\n \"population_density_2010_km\" real\n);\n\nQuestion: Name the number of area where population density 2010 for 514"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"area_km\") FROM \"municipalities\" WHERE \"population_density_2010_km\"=514;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"municipalities\" (\n \"administrative_division\" text,\n \"area_km\" text,\n \"population_2000_census\" real,\n \"population_2010_census\" real,\n \"population_density_2010_km\" real\n);\n\nQuestion: Name the number of population density 2010 for duque de caxias"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"population_density_2010_km\") FROM \"municipalities\" WHERE \"administrative_division\"='Duque de Caxias';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"municipalities\" (\n \"administrative_division\" text,\n \"area_km\" text,\n \"population_2000_census\" real,\n \"population_2010_census\" real,\n \"population_density_2010_km\" real\n);\n\nQuestion: Name the administrative division for 95391"
},
{
"role": "assistant",
"content": "SELECT \"administrative_division\" FROM \"municipalities\" WHERE \"population_2010_census\"=95391;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: How many losses did 12 de Octubre have ? "
},
{
"role": "assistant",
"content": "SELECT MIN(\"losses\") FROM \"torneo_clausura\" WHERE \"team\"='12 de Octubre';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1499791_2\" (\n \"english_gloss\" text,\n \"santee_sisseton\" text,\n \"yankton_yanktonai\" text,\n \"northern_lakota\" text,\n \"southern_lakota\" text\n);\n\nQuestion: Name the santee sisseton for morning"
},
{
"role": "assistant",
"content": "SELECT \"santee_sisseton\" FROM \"table1_1499791_2\" WHERE \"english_gloss\"='morning';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1499791_2\" (\n \"english_gloss\" text,\n \"santee_sisseton\" text,\n \"yankton_yanktonai\" text,\n \"northern_lakota\" text,\n \"southern_lakota\" text\n);\n\nQuestion: Name the southern lakota for morning"
},
{
"role": "assistant",
"content": "SELECT \"southern_lakota\" FROM \"table1_1499791_2\" WHERE \"english_gloss\"='morning';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1499791_2\" (\n \"english_gloss\" text,\n \"santee_sisseton\" text,\n \"yankton_yanktonai\" text,\n \"northern_lakota\" text,\n \"southern_lakota\" text\n);\n\nQuestion: Name the southern lakota for wak\u021f\u00e1\u014bye\u017ea"
},
{
"role": "assistant",
"content": "SELECT \"southern_lakota\" FROM \"table1_1499791_2\" WHERE \"yankton_yanktonai\"='wak\u021f\u00e1\u014bye\u017ea';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1499791_2\" (\n \"english_gloss\" text,\n \"santee_sisseton\" text,\n \"yankton_yanktonai\" text,\n \"northern_lakota\" text,\n \"southern_lakota\" text\n);\n\nQuestion: Name the english gloss for nah\u00e1\u014b\u021f\u010di\u014b"
},
{
"role": "assistant",
"content": "SELECT \"english_gloss\" FROM \"table1_1499791_2\" WHERE \"southern_lakota\"='nah\u00e1\u014b\u021f\u010di\u014b';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1499791_2\" (\n \"english_gloss\" text,\n \"santee_sisseton\" text,\n \"yankton_yanktonai\" text,\n \"northern_lakota\" text,\n \"southern_lakota\" text\n);\n\nQuestion: Name the santee sisseton for h\u00ed\u014bha\u014bna"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"santee_sisseton\") FROM \"table1_1499791_2\" WHERE \"yankton_yanktonai\"='h\u00ed\u014bha\u014bna';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1499791_2\" (\n \"english_gloss\" text,\n \"santee_sisseton\" text,\n \"yankton_yanktonai\" text,\n \"northern_lakota\" text,\n \"southern_lakota\" text\n);\n\nQuestion: Name the yankton yanktonai for wi\u010dh\u00e1\u0161a"
},
{
"role": "assistant",
"content": "SELECT \"yankton_yanktonai\" FROM \"table1_1499791_2\" WHERE \"southern_lakota\"='wi\u010dh\u00e1\u0161a';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14999879_2\" (\n \"round\" real,\n \"choice\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"college\" text\n);\n\nQuestion: What was the last round the team drafted?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"round\") FROM \"table1_14999879_2\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14999879_2\" (\n \"round\" real,\n \"choice\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"college\" text\n);\n\nQuestion: What college did steve justice attend?"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"table1_14999879_2\" WHERE \"player\"='Steve Justice';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: How may women doubles winner were there when Philippe Aulner was mens singles winner?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"womens_doubles\") FROM \"past_winners\" WHERE \"mens_singles\"='Philippe Aulner';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: How many mixed doubles were won in 1996?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"mixed_doubles\") FROM \"past_winners\" WHERE \"year\"=1996;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: who is the the\u00a0womens doubles\u00a0with\u00a0mens doubles\u00a0being reinhold pum karl buchart and\u00a0mixed doubles\u00a0being hermann fr\u00f6hlich lore voit"
},
{
"role": "assistant",
"content": "SELECT \"womens_doubles\" FROM \"past_winners\" WHERE \"mens_doubles\"='Reinhold Pum Karl Buchart' AND \"mixed_doubles\"='Hermann Fr\u00f6hlich Lore Voit';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: who is the the\u00a0womens doubles\u00a0with\u00a0mens doubles\u00a0being leopold bauer alfred kohlhauser"
},
{
"role": "assistant",
"content": "SELECT \"womens_doubles\" FROM \"past_winners\" WHERE \"mens_doubles\"='Leopold Bauer Alfred Kohlhauser';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: who is the the\u00a0mixed doubles\u00a0with\u00a0mens singles\u00a0being peter moritz"
},
{
"role": "assistant",
"content": "SELECT \"mixed_doubles\" FROM \"past_winners\" WHERE \"mens_singles\"='Peter Moritz';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: who is the the\u00a0mens doubles\u00a0with\u00a0mens singles\u00a0being j\u00fcrgen koch and\u00a0womens singles\u00a0being sabine ploner"
},
{
"role": "assistant",
"content": "SELECT \"mens_doubles\" FROM \"past_winners\" WHERE \"mens_singles\"='J\u00fcrgen Koch' AND \"womens_singles\"='Sabine Ploner';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: who is the the\u00a0womens singles\u00a0with\u00a0mixed doubles\u00a0being bernd frohnwieser hilde themel and\u00a0year\u00a0being smaller than 1959.0"
},
{
"role": "assistant",
"content": "SELECT \"womens_singles\" FROM \"past_winners\" WHERE \"mixed_doubles\"='Bernd Frohnwieser Hilde Themel' AND \"year\"<1959.0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: How many mixed doubles were there in the year that Olga Koseli won the women's singles?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"mixed_doubles\") FROM \"past_winners\" WHERE \"womens_singles\"='Olga Koseli';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15026994_5\" (\n \"num\" real,\n \"episode\" text,\n \"writer\" text,\n \"director\" text,\n \"original_air_date\" text,\n \"viewing_figure\" text\n);\n\nQuestion: What is the # for the episode with viewing figures of 7.02 million ?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"num\") FROM \"table1_15026994_5\" WHERE \"viewing_figure\"='7.02 million';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_15_countries_by_tally\" (\n \"rank\" real,\n \"country\" text,\n \"miss_universe\" real,\n \"1st_runner_up\" real,\n \"2nd_runner_up\" real,\n \"3rd_runner_up\" real,\n \"4th_runner_up\" real,\n \"semifinalists\" real,\n \"total\" real\n);\n\nQuestion: What is the lowest rank for puerto rico?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rank\") FROM \"top_15_countries_by_tally\" WHERE \"country\"='Puerto Rico';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_15_countries_by_tally\" (\n \"rank\" real,\n \"country\" text,\n \"miss_universe\" real,\n \"1st_runner_up\" real,\n \"2nd_runner_up\" real,\n \"3rd_runner_up\" real,\n \"4th_runner_up\" real,\n \"semifinalists\" real,\n \"total\" real\n);\n\nQuestion: What is the highest rank for the country with 6 2nd runner ups?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"rank\") FROM \"top_15_countries_by_tally\" WHERE \"2nd_runner_up\"=6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15026994_2\" (\n \"num\" real,\n \"episode\" text,\n \"writer\" text,\n \"director\" text,\n \"original_air_date\" text,\n \"viewing_figure\" text\n);\n\nQuestion: How many different directors are associated with the writer Gaby Chiappe?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"director\") FROM \"table1_15026994_2\" WHERE \"writer\"='Gaby Chiappe';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15026994_2\" (\n \"num\" real,\n \"episode\" text,\n \"writer\" text,\n \"director\" text,\n \"original_air_date\" text,\n \"viewing_figure\" text\n);\n\nQuestion: What writers are associated with a viewing figure of 7.01 million?"
},
{
"role": "assistant",
"content": "SELECT \"writer\" FROM \"table1_15026994_2\" WHERE \"viewing_figure\"='7.01 million';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15026994_2\" (\n \"num\" real,\n \"episode\" text,\n \"writer\" text,\n \"director\" text,\n \"original_air_date\" text,\n \"viewing_figure\" text\n);\n\nQuestion: What are all episodes with a viewing figure of 6.72 million?"
},
{
"role": "assistant",
"content": "SELECT \"episode\" FROM \"table1_15026994_2\" WHERE \"viewing_figure\"='6.72 million';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15026994_2\" (\n \"num\" real,\n \"episode\" text,\n \"writer\" text,\n \"director\" text,\n \"original_air_date\" text,\n \"viewing_figure\" text\n);\n\nQuestion: What original air dates are associated with a viewing figure of 7.27 million?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_15026994_2\" WHERE \"viewing_figure\"='7.27 million';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15026994_3\" (\n \"num\" real,\n \"episode\" text,\n \"writer\" text,\n \"director\" text,\n \"original_air_date\" text,\n \"viewing_figure\" text\n);\n\nQuestion: Who is the director of the episode at entry number 13? "
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"table1_15026994_3\" WHERE \"num\"=13;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15026994_3\" (\n \"num\" real,\n \"episode\" text,\n \"writer\" text,\n \"director\" text,\n \"original_air_date\" text,\n \"viewing_figure\" text\n);\n\nQuestion: Who wrote the episode that David Tucker directed?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"writer\") FROM \"table1_15026994_3\" WHERE \"director\"='David Tucker';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15026994_3\" (\n \"num\" real,\n \"episode\" text,\n \"writer\" text,\n \"director\" text,\n \"original_air_date\" text,\n \"viewing_figure\" text\n);\n\nQuestion: Which episode has been viewed 6.34 million times? "
},
{
"role": "assistant",
"content": "SELECT \"episode\" FROM \"table1_15026994_3\" WHERE \"viewing_figure\"='6.34 million';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15026994_3\" (\n \"num\" real,\n \"episode\" text,\n \"writer\" text,\n \"director\" text,\n \"original_air_date\" text,\n \"viewing_figure\" text\n);\n\nQuestion: What is the original air date of the episode directed by Paul Marcus?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_15026994_3\" WHERE \"director\"='Paul Marcus';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15026994_3\" (\n \"num\" real,\n \"episode\" text,\n \"writer\" text,\n \"director\" text,\n \"original_air_date\" text,\n \"viewing_figure\" text\n);\n\nQuestion: Which numerical entry corresponds to \"Episode 9\"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"num\") FROM \"table1_15026994_3\" WHERE \"episode\"='\\\"Episode 9\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"general\" (\n \"software\" text,\n \"version\" text,\n \"operating_systems\" text,\n \"developer\" text,\n \"license\" text\n);\n\nQuestion: How many licenses have version 1.2.2.0?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"license\") FROM \"general\" WHERE \"version\"='1.2.2.0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"general\" (\n \"software\" text,\n \"version\" text,\n \"operating_systems\" text,\n \"developer\" text,\n \"license\" text\n);\n\nQuestion: What is the version with sbagen software?"
},
{
"role": "assistant",
"content": "SELECT \"version\" FROM \"general\" WHERE \"software\"='SBaGen';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"general\" (\n \"software\" text,\n \"version\" text,\n \"operating_systems\" text,\n \"developer\" text,\n \"license\" text\n);\n\nQuestion: How many licenses have mind workstation software?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"license\") FROM \"general\" WHERE \"software\"='Mind WorkStation';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"general\" (\n \"software\" text,\n \"version\" text,\n \"operating_systems\" text,\n \"developer\" text,\n \"license\" text\n);\n\nQuestion: What is the software with version 1.2.2.0?"
},
{
"role": "assistant",
"content": "SELECT \"software\" FROM \"general\" WHERE \"version\"='1.2.2.0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"general\" (\n \"software\" text,\n \"version\" text,\n \"operating_systems\" text,\n \"developer\" text,\n \"license\" text\n);\n\nQuestion: What is hte license for beeone smod/hms software?"
},
{
"role": "assistant",
"content": "SELECT \"license\" FROM \"general\" WHERE \"software\"='BeeOne SMOD/HMS';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"general\" (\n \"software\" text,\n \"version\" text,\n \"operating_systems\" text,\n \"developer\" text,\n \"license\" text\n);\n\nQuestion: What are all the operating systems for sbagen?"
},
{
"role": "assistant",
"content": "SELECT \"operating_systems\" FROM \"general\" WHERE \"software\"='SBaGen';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison_of_ido_vocabulary_with_its_si\" (\n \"ido\" text,\n \"english\" text,\n \"italian\" text,\n \"french\" text,\n \"german\" text,\n \"russian\" text,\n \"spanish\" text\n);\n\nQuestion: What is the English word for the French word cheval?"
},
{
"role": "assistant",
"content": "SELECT \"english\" FROM \"comparison_of_ido_vocabulary_with_its_si\" WHERE \"french\"='cheval';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison_of_ido_vocabulary_with_its_si\" (\n \"ido\" text,\n \"english\" text,\n \"italian\" text,\n \"french\" text,\n \"german\" text,\n \"russian\" text,\n \"spanish\" text\n);\n\nQuestion: What is the Spanish word for the French word filtrer?"
},
{
"role": "assistant",
"content": "SELECT \"spanish\" FROM \"comparison_of_ido_vocabulary_with_its_si\" WHERE \"french\"='filtrer';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison_of_ido_vocabulary_with_its_si\" (\n \"ido\" text,\n \"english\" text,\n \"italian\" text,\n \"french\" text,\n \"german\" text,\n \"russian\" text,\n \"spanish\" text\n);\n\nQuestion: What is the French word where the German word is filtern?"
},
{
"role": "assistant",
"content": "SELECT \"french\" FROM \"comparison_of_ido_vocabulary_with_its_si\" WHERE \"german\"='filtern';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison_of_ido_vocabulary_with_its_si\" (\n \"ido\" text,\n \"english\" text,\n \"italian\" text,\n \"french\" text,\n \"german\" text,\n \"russian\" text,\n \"spanish\" text\n);\n\nQuestion: What is the french word for the Russian word filtrovat (\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c)?"
},
{
"role": "assistant",
"content": "SELECT \"french\" FROM \"comparison_of_ido_vocabulary_with_its_si\" WHERE \"russian\"='filtrovat (\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison_of_ido_vocabulary_with_its_si\" (\n \"ido\" text,\n \"english\" text,\n \"italian\" text,\n \"french\" text,\n \"german\" text,\n \"russian\" text,\n \"spanish\" text\n);\n\nQuestion: What is the French word for the Italian word nazione?"
},
{
"role": "assistant",
"content": "SELECT \"french\" FROM \"comparison_of_ido_vocabulary_with_its_si\" WHERE \"italian\"='nazione';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison_of_ido_vocabulary_with_its_si\" (\n \"ido\" text,\n \"english\" text,\n \"italian\" text,\n \"french\" text,\n \"german\" text,\n \"russian\" text,\n \"spanish\" text\n);\n\nQuestion: What is the English word for the Russian words loshad, kobyla (\u043b\u043e\u0448\u0430\u0434\u044c, \u043a\u043e\u0431\u044b\u043b\u0430)?"
},
{
"role": "assistant",
"content": "SELECT \"english\" FROM \"comparison_of_ido_vocabulary_with_its_si\" WHERE \"russian\"='loshad, kobyla (\u043b\u043e\u0448\u0430\u0434\u044c, \u043a\u043e\u0431\u044b\u043b\u0430)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"geography_of_students\" (\n \"states\" text,\n \"fall_05\" real,\n \"fall_06\" real,\n \"fall_07\" real,\n \"fall_08\" real,\n \"fall_09\" real\n);\n\nQuestion: Which state had 3821 students in the fall of 06?"
},
{
"role": "assistant",
"content": "SELECT \"states\" FROM \"geography_of_students\" WHERE \"fall_06\"=3821;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"geography_of_students\" (\n \"states\" text,\n \"fall_05\" real,\n \"fall_06\" real,\n \"fall_07\" real,\n \"fall_08\" real,\n \"fall_09\" real\n);\n\nQuestion: How man students were from Maryland in Fall 05?"
},
{
"role": "assistant",
"content": "SELECT \"fall_05\" FROM \"geography_of_students\" WHERE \"states\"='Maryland';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"geography_of_students\" (\n \"states\" text,\n \"fall_05\" real,\n \"fall_06\" real,\n \"fall_07\" real,\n \"fall_08\" real,\n \"fall_09\" real\n);\n\nQuestion: What is the number of students in Fall 09 from the state that had 3940 in Fall 07?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"fall_09\") FROM \"geography_of_students\" WHERE \"fall_07\"=3940;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"geography_of_students\" (\n \"states\" text,\n \"fall_05\" real,\n \"fall_06\" real,\n \"fall_07\" real,\n \"fall_08\" real,\n \"fall_09\" real\n);\n\nQuestion: What was the highest number of students in Fall 09 in the state that had 3821 in Fall 06?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"fall_09\") FROM \"geography_of_students\" WHERE \"fall_06\"=3821;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"geography_of_students\" (\n \"states\" text,\n \"fall_05\" real,\n \"fall_06\" real,\n \"fall_07\" real,\n \"fall_08\" real,\n \"fall_09\" real\n);\n\nQuestion: What is the lowest number of students from a state during the Fall 06 semester?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"fall_06\") FROM \"geography_of_students\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"immigration_by_state\" (\n \"north_carolina\" text,\n \"273_7pct\" text,\n \"south_carolina\" text,\n \"132_1pct\" text,\n \"mississippi\" text,\n \"95_8pct\" text,\n \"wisconsin\" text,\n \"59_4pct\" text,\n \"vermont\" text,\n \"32_5pct\" text\n);\n\nQuestion: Name the 132.1% for where north carolina is colorado"
},
{
"role": "assistant",
"content": "SELECT \"132_1pct\" FROM \"immigration_by_state\" WHERE \"north_carolina\"='Colorado';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"immigration_by_state\" (\n \"north_carolina\" text,\n \"273_7pct\" text,\n \"south_carolina\" text,\n \"132_1pct\" text,\n \"mississippi\" text,\n \"95_8pct\" text,\n \"wisconsin\" text,\n \"59_4pct\" text,\n \"vermont\" text,\n \"32_5pct\" text\n);\n\nQuestion: Name the vermont for where 95.8% is 60.6%"
},
{
"role": "assistant",
"content": "SELECT \"vermont\" FROM \"immigration_by_state\" WHERE \"95_8pct\"='60.6%';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.