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 \"capetian_associate_kings\" (\n \"co_king\" text,\n \"relationship_to_monarch\" text,\n \"crowned\" text,\n \"co_kingship_ceased\" text,\n \"reason\" text,\n \"monarch\" text\n);\n\nQuestion: Name the monarch for 13 october 1131"
},
{
"role": "assistant",
"content": "SELECT \"monarch\" FROM \"capetian_associate_kings\" WHERE \"co_kingship_ceased\"='13 October 1131';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: What was the playoff result where the league did not qualify in the Open Cup in 1998?"
},
{
"role": "assistant",
"content": "SELECT \"playoffs\" FROM \"year_by_year\" WHERE \"open_cup\"='Did not qualify' AND \"year\"=1998;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: What was the earliest year where USL PDL played in 3rd, Southeast season?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"year_by_year\" WHERE \"regular_season\"='3rd, Southeast' AND \"league\"='USL PDL';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: What was the Open Cup results for the year 2003?"
},
{
"role": "assistant",
"content": "SELECT \"open_cup\" FROM \"year_by_year\" WHERE \"year\"=2003;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results_of_the_2009_indian_general_elect\" (\n \"sl_no\" real,\n \"name\" text,\n \"party_name\" text,\n \"postal_ballot\" real,\n \"10_thiruvottiyur\" real,\n \"11_dr_radhakrishnan_nagar\" real,\n \"12_perambur_sc\" real,\n \"13_kolathur_sc\" real,\n \"16_thiru_vi_ka_nagar\" real,\n \"17_royapuram\" real,\n \"total_evm_votes\" real,\n \"total_votes\" real\n);\n\nQuestion: What is the highest total for evm votes"
},
{
"role": "assistant",
"content": "SELECT MAX(\"total_evm_votes\") FROM \"results_of_the_2009_indian_general_elect\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results_of_the_2009_indian_general_elect\" (\n \"sl_no\" real,\n \"name\" text,\n \"party_name\" text,\n \"postal_ballot\" real,\n \"10_thiruvottiyur\" real,\n \"11_dr_radhakrishnan_nagar\" real,\n \"12_perambur_sc\" real,\n \"13_kolathur_sc\" real,\n \"16_thiru_vi_ka_nagar\" real,\n \"17_royapuram\" real,\n \"total_evm_votes\" real,\n \"total_votes\" real\n);\n\nQuestion: What is DMK's total number of votes?"
},
{
"role": "assistant",
"content": "SELECT \"total_votes\" FROM \"results_of_the_2009_indian_general_elect\" WHERE \"party_name\"='DMK';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24051050_1\" (\n \"episode\" real,\n \"contest\" text,\n \"original_airdate\" text,\n \"challengers_female\" text,\n \"challengers_male\" text,\n \"events\" text\n);\n\nQuestion: In what episode did heat 1 take place?"
},
{
"role": "assistant",
"content": "SELECT \"episode\" FROM \"table1_24051050_1\" WHERE \"contest\"='Heat 1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24051050_1\" (\n \"episode\" real,\n \"contest\" text,\n \"original_airdate\" text,\n \"challengers_female\" text,\n \"challengers_male\" text,\n \"events\" text\n);\n\nQuestion: What events took place in episode 12?"
},
{
"role": "assistant",
"content": "SELECT \"events\" FROM \"table1_24051050_1\" WHERE \"episode\"=12;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24051050_1\" (\n \"episode\" real,\n \"contest\" text,\n \"original_airdate\" text,\n \"challengers_female\" text,\n \"challengers_male\" text,\n \"events\" text\n);\n\nQuestion: Which female challengers featured in episode 28?"
},
{
"role": "assistant",
"content": "SELECT \"challengers_female\" FROM \"table1_24051050_1\" WHERE \"episode\"=28;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_10_roster\" (\n \"name\" text,\n \"number\" real,\n \"pos\" text,\n \"height\" text,\n \"weight\" real,\n \"year\" text,\n \"hometown\" text,\n \"high_school\" text\n);\n\nQuestion: How many players came from Los Angeles?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"name\") FROM \"2009_10_roster\" WHERE \"hometown\"='Los Angeles';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_10_roster\" (\n \"name\" text,\n \"number\" real,\n \"pos\" text,\n \"height\" text,\n \"weight\" real,\n \"year\" text,\n \"hometown\" text,\n \"high_school\" text\n);\n\nQuestion: What is the height when the player is from Los Angeles?"
},
{
"role": "assistant",
"content": "SELECT \"height\" FROM \"2009_10_roster\" WHERE \"hometown\"='Los Angeles';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_10_roster\" (\n \"name\" text,\n \"number\" real,\n \"pos\" text,\n \"height\" text,\n \"weight\" real,\n \"year\" text,\n \"hometown\" text,\n \"high_school\" text\n);\n\nQuestion: What is Kammeon Holsey's height?"
},
{
"role": "assistant",
"content": "SELECT \"height\" FROM \"2009_10_roster\" WHERE \"name\"='Kammeon Holsey';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_10_roster\" (\n \"name\" text,\n \"number\" real,\n \"pos\" text,\n \"height\" text,\n \"weight\" real,\n \"year\" text,\n \"hometown\" text,\n \"high_school\" text\n);\n\nQuestion: What is the high school of the player number 5?"
},
{
"role": "assistant",
"content": "SELECT \"high_school\" FROM \"2009_10_roster\" WHERE \"number\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"records\" (\n \"world_record\" text,\n \"kenenisa_bekele_eth\" text,\n \"12_37_35\" text,\n \"hengelo_netherlands\" text,\n \"31_may_2004\" text\n);\n\nQuestion: What is the 12::37.35 when hengelo , netherlands is hengelo, netherlands?"
},
{
"role": "assistant",
"content": "SELECT \"12_37_35\" FROM \"records\" WHERE \"hengelo_netherlands\"='Hengelo, Netherlands';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"records\" (\n \"world_record\" text,\n \"kenenisa_bekele_eth\" text,\n \"12_37_35\" text,\n \"hengelo_netherlands\" text,\n \"31_may_2004\" text\n);\n\nQuestion: what is hengelo , netherlands when 31 may 2004 is 8 june 2006?"
},
{
"role": "assistant",
"content": "SELECT \"hengelo_netherlands\" FROM \"records\" WHERE \"31_may_2004\"='8 June 2006';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"records\" (\n \"world_record\" text,\n \"kenenisa_bekele_eth\" text,\n \"12_37_35\" text,\n \"hengelo_netherlands\" text,\n \"31_may_2004\" text\n);\n\nQuestion: what is 31 may 2004 when 12:37.35 is 13:19.43?"
},
{
"role": "assistant",
"content": "SELECT \"31_may_2004\" FROM \"records\" WHERE \"12_37_35\"='13:19.43';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"records\" (\n \"world_record\" text,\n \"kenenisa_bekele_eth\" text,\n \"12_37_35\" text,\n \"hengelo_netherlands\" text,\n \"31_may_2004\" text\n);\n\nQuestion: How many times is kenenisa bekele ( eth ) is mar\u00edlson gomes dos santos ( bra )?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"world_record\") FROM \"records\" WHERE \"kenenisa_bekele_eth\"='Mar\u00edlson Gomes dos Santos ( BRA )';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performances_4_2\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"win_lose\" text,\n \"result\" text\n);\n\nQuestion: What is every entry for against with opponent Andreas Vinciguerra?"
},
{
"role": "assistant",
"content": "SELECT \"against\" FROM \"singles_performances_4_2\" WHERE \"opponent\"='Andreas Vinciguerra';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performances_4_2\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"win_lose\" text,\n \"result\" text\n);\n\nQuestion: What is every entry for against with opponent Andreas Vinciguerra?"
},
{
"role": "assistant",
"content": "SELECT \"against\" FROM \"singles_performances_4_2\" WHERE \"opponent\"='Andreas Vinciguerra';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performances_4_2\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"win_lose\" text,\n \"result\" text\n);\n\nQuestion: What is every surface against Sweden?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"singles_performances_4_2\" WHERE \"against\"='Sweden';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performances_4_2\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"win_lose\" text,\n \"result\" text\n);\n\nQuestion: What is every entry in the win/lose against Sweden?"
},
{
"role": "assistant",
"content": "SELECT \"win_lose\" FROM \"singles_performances_4_2\" WHERE \"against\"='Sweden';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: How many production codes have an original airdate of November 16, 1990?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"production_code\") FROM \"table1_2409041_3\" WHERE \"original_air_date\"='November 16, 1990';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What series number had an original airdate of March 1, 1991?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"no_in_series\") FROM \"table1_2409041_3\" WHERE \"original_air_date\"='March 1, 1991';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: Who directed \"Torn Between Two Lovers\"?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_2409041_3\" WHERE \"title\"='\\\"Torn Between Two Lovers\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: How many production codes were in series 39?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"production_code\") FROM \"table1_2409041_3\" WHERE \"no_in_series\"=39;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: Who wrote season 23?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_2409041_3\" WHERE \"no_in_season\"=23;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What is the production code for episode number 86 in the series?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"production_code\") FROM \"table1_2409041_5\" WHERE \"no_in_series\"=86;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What episode number in the series is \"dance to the music\"?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"no_in_series\") FROM \"table1_2409041_5\" WHERE \"title\"='\\\"Dance to the Music\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What is the production code for the episode that originally aired on January 8, 1993?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"production_code\") FROM \"table1_2409041_5\" WHERE \"original_air_date\"='January 8, 1993';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: Who wrote the episode that originally aired on January 15, 1993?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_2409041_5\" WHERE \"original_air_date\"='January 15, 1993';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What is the name of episode number 77 in the series?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_2409041_5\" WHERE \"no_in_series\"=77;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: When 17 is the number in series who is the director?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_2409041_2\" WHERE \"no_in_series\"=17;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: When 21 is the number in series what is the air date?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_2409041_2\" WHERE \"no_in_series\"=21;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: When 446004 is the production code who are the writers?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_2409041_2\" WHERE \"production_code\"=446004;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: When \"body damage\" is the title how many air dates are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"original_air_date\") FROM \"table1_2409041_2\" WHERE \"title\"='\\\"Body Damage\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_9\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: Who directed \"what do you know?\"?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_2409041_9\" WHERE \"title\"='\\\"What Do You Know?\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_9\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What was the name of the epiode written by Gary M. Goodrich?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_2409041_9\" WHERE \"written_by\"='Gary M. Goodrich';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_9\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: Who directed episode number 179 in the series?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_2409041_9\" WHERE \"no_in_series\"=179;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_9\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: How many people directed \"odd man in\"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"directed_by\") FROM \"table1_2409041_9\" WHERE \"title\"='\\\"Odd Man In\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tillamook_0_25_m\" (\n \"model_number\" text,\n \"frequency\" text,\n \"l1_cache\" text,\n \"fsb\" text,\n \"mult\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"s_spec_number\" text\n);\n\nQuestion: What's the voltage of the model with part number TT80503300?"
},
{
"role": "assistant",
"content": "SELECT \"voltage\" FROM \"tillamook_0_25_m\" WHERE \"part_number_s\"='TT80503300';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tillamook_0_25_m\" (\n \"model_number\" text,\n \"frequency\" text,\n \"l1_cache\" text,\n \"fsb\" text,\n \"mult\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"s_spec_number\" text\n);\n\nQuestion: What's the frequency of the model with part number TT80503300?"
},
{
"role": "assistant",
"content": "SELECT \"frequency\" FROM \"tillamook_0_25_m\" WHERE \"part_number_s\"='TT80503300';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tillamook_0_25_m\" (\n \"model_number\" text,\n \"frequency\" text,\n \"l1_cache\" text,\n \"fsb\" text,\n \"mult\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"s_spec_number\" text\n);\n\nQuestion: What's the part number of the model with TDP of 2.9 (max.4.1~5.4) w?"
},
{
"role": "assistant",
"content": "SELECT \"part_number_s\" FROM \"tillamook_0_25_m\" WHERE \"tdp\"='2.9 (Max.4.1~5.4) W';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tillamook_0_25_m\" (\n \"model_number\" text,\n \"frequency\" text,\n \"l1_cache\" text,\n \"fsb\" text,\n \"mult\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"s_spec_number\" text\n);\n\nQuestion: What's the l1 cache of the model with sspec number sl2z3, sl28q (mya0)?"
},
{
"role": "assistant",
"content": "SELECT \"l1_cache\" FROM \"tillamook_0_25_m\" WHERE \"s_spec_number\"='SL2Z3, SL28Q (myA0)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_240936_2\" (\n \"dvd_name\" text,\n \"ep_num\" text,\n \"region_1_us\" text,\n \"region_1_can\" text,\n \"region_2_uk\" text,\n \"region_2_germany\" text,\n \"region_4_australia\" text\n);\n\nQuestion: How many region 4 dates are associated with a region 2 date of July 9, 2007?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"region_4_australia\") FROM \"table1_240936_2\" WHERE \"region_2_uk\"='July 9, 2007';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_240936_2\" (\n \"dvd_name\" text,\n \"ep_num\" text,\n \"region_1_us\" text,\n \"region_1_can\" text,\n \"region_2_uk\" text,\n \"region_2_germany\" text,\n \"region_4_australia\" text\n);\n\nQuestion: What is the region 1 (Canada) date associated with a region 1 (US) date of January 16, 2007?"
},
{
"role": "assistant",
"content": "SELECT \"region_1_can\" FROM \"table1_240936_2\" WHERE \"region_1_us\"='January 16, 2007';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_240936_2\" (\n \"dvd_name\" text,\n \"ep_num\" text,\n \"region_1_us\" text,\n \"region_1_can\" text,\n \"region_2_uk\" text,\n \"region_2_germany\" text,\n \"region_4_australia\" text\n);\n\nQuestion: What is the region 4 (Aus) date associated with a region 1 (US) date of January 16, 2007?"
},
{
"role": "assistant",
"content": "SELECT \"region_4_australia\" FROM \"table1_240936_2\" WHERE \"region_1_us\"='January 16, 2007';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_240936_2\" (\n \"dvd_name\" text,\n \"ep_num\" text,\n \"region_1_us\" text,\n \"region_1_can\" text,\n \"region_2_uk\" text,\n \"region_2_germany\" text,\n \"region_4_australia\" text\n);\n\nQuestion: What is the region 2 (UK) date associated with a region 4 (Aus) date of July 31, 2008?"
},
{
"role": "assistant",
"content": "SELECT \"region_2_uk\" FROM \"table1_240936_2\" WHERE \"region_4_australia\"='July 31, 2008';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_240936_2\" (\n \"dvd_name\" text,\n \"ep_num\" text,\n \"region_1_us\" text,\n \"region_1_can\" text,\n \"region_2_uk\" text,\n \"region_2_germany\" text,\n \"region_4_australia\" text\n);\n\nQuestion: What is the region 1 (Canada) date associated with a region 2 (UK) date of May 18, 2009?"
},
{
"role": "assistant",
"content": "SELECT \"region_1_can\" FROM \"table1_240936_2\" WHERE \"region_2_uk\"='May 18, 2009';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_6\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: How many seasons included an episode titled \"all the wrong moves\"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"no_in_season\") FROM \"table1_2409041_6\" WHERE \"title\"='\\\"All the Wrong Moves\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_6\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: Who was the director for the episode airing on September 24, 1993?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_2409041_6\" WHERE \"original_air_date\"='September 24, 1993';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_6\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: In which series was season 18?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"no_in_series\") FROM \"table1_2409041_6\" WHERE \"no_in_season\"=18;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_6\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: Who wrote the episode \"car wars\"?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_2409041_6\" WHERE \"title\"='\\\"Car Wars\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2409041_6\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What is the title of season 2? "
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_2409041_6\" WHERE \"no_in_season\"=2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"variants\" (\n \"processor\" text,\n \"brand_name\" text,\n \"model_list\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"socket\" text,\n \"tdp\" text\n);\n\nQuestion: What is the brand name associated with a model name e4xxx?"
},
{
"role": "assistant",
"content": "SELECT \"brand_name\" FROM \"variants\" WHERE \"model_list\"='E4xxx';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"variants\" (\n \"processor\" text,\n \"brand_name\" text,\n \"model_list\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"socket\" text,\n \"tdp\" text\n);\n\nQuestion: What is the brand name associated with the model named e4xxx?"
},
{
"role": "assistant",
"content": "SELECT \"brand_name\" FROM \"variants\" WHERE \"model_list\"='E4xxx';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"variants\" (\n \"processor\" text,\n \"brand_name\" text,\n \"model_list\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"socket\" text,\n \"tdp\" text\n);\n\nQuestion: What is the brand name associated with the model 4x0?"
},
{
"role": "assistant",
"content": "SELECT \"brand_name\" FROM \"variants\" WHERE \"model_list\"='4x0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"variants\" (\n \"processor\" text,\n \"brand_name\" text,\n \"model_list\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"socket\" text,\n \"tdp\" text\n);\n\nQuestion: What is the number of cores associated with model name e2xxx?"
},
{
"role": "assistant",
"content": "SELECT \"cores\" FROM \"variants\" WHERE \"model_list\"='E2xxx';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"variants\" (\n \"processor\" text,\n \"brand_name\" text,\n \"model_list\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"socket\" text,\n \"tdp\" text\n);\n\nQuestion: What is the wattage/TDP associated with model name 4x0?"
},
{
"role": "assistant",
"content": "SELECT \"tdp\" FROM \"variants\" WHERE \"model_list\"='4x0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"variants\" (\n \"processor\" text,\n \"brand_name\" text,\n \"model_list\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"socket\" text,\n \"tdp\" text\n);\n\nQuestion: When the socket is bga956 and processor is penryn-3m, what is the tdp?"
},
{
"role": "assistant",
"content": "SELECT \"tdp\" FROM \"variants\" WHERE \"socket\"='BGA956' AND \"processor\"='Penryn-3M';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"variants\" (\n \"processor\" text,\n \"brand_name\" text,\n \"model_list\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"socket\" text,\n \"tdp\" text\n);\n\nQuestion: Whats the processor for p9xxx?"
},
{
"role": "assistant",
"content": "SELECT \"processor\" FROM \"variants\" WHERE \"model_list\"='P9xxx';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"variants\" (\n \"processor\" text,\n \"brand_name\" text,\n \"model_list\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"socket\" text,\n \"tdp\" text\n);\n\nQuestion: What's the l2 cache of the model with TDP of 5.5-10 w?"
},
{
"role": "assistant",
"content": "SELECT \"l2_cache\" FROM \"variants\" WHERE \"tdp\"='5.5-10 W';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"variants\" (\n \"processor\" text,\n \"brand_name\" text,\n \"model_list\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"socket\" text,\n \"tdp\" text\n);\n\nQuestion: What's the model of the processor with BGA479 socket and a 5.5 w TDP?"
},
{
"role": "assistant",
"content": "SELECT \"model_list\" FROM \"variants\" WHERE \"socket\"='BGA479' AND \"tdp\"='5.5 W';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"variants\" (\n \"processor\" text,\n \"brand_name\" text,\n \"model_list\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"socket\" text,\n \"tdp\" text\n);\n\nQuestion: What's the model of the processor with a 5.5 w TDP?"
},
{
"role": "assistant",
"content": "SELECT \"model_list\" FROM \"variants\" WHERE \"tdp\"='5.5 W';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"variants\" (\n \"processor\" text,\n \"brand_name\" text,\n \"model_list\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"socket\" text,\n \"tdp\" text\n);\n\nQuestion: What's the smallest number for cores of any of the processor models?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"cores\") FROM \"variants\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"variants\" (\n \"processor\" text,\n \"brand_name\" text,\n \"model_list\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"socket\" text,\n \"tdp\" text\n);\n\nQuestion: what is the model where the processor is yorkfield and the brand name is xeon?"
},
{
"role": "assistant",
"content": "SELECT \"model_list\" FROM \"variants\" WHERE \"processor\"='Yorkfield' AND \"brand_name\"='Xeon';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"variants\" (\n \"processor\" text,\n \"brand_name\" text,\n \"model_list\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"socket\" text,\n \"tdp\" text\n);\n\nQuestion: what is the socket that has a brand name of core 2 extreme?"
},
{
"role": "assistant",
"content": "SELECT \"socket\" FROM \"variants\" WHERE \"brand_name\"='Core 2 Extreme';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"variants\" (\n \"processor\" text,\n \"brand_name\" text,\n \"model_list\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"socket\" text,\n \"tdp\" text\n);\n\nQuestion: what is the name of the processor for model x33x0?"
},
{
"role": "assistant",
"content": "SELECT \"processor\" FROM \"variants\" WHERE \"model_list\"='X33x0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24108789_4\" (\n \"num\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"winnings\" real,\n \"after\" real,\n \"before\" real\n);\n\nQuestion: What is the earliest number in before?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"before\") FROM \"table1_24108789_4\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24108789_4\" (\n \"num\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"winnings\" real,\n \"after\" real,\n \"before\" real\n);\n\nQuestion: What is the latest after when the player is Steve Stricker?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"after\") FROM \"table1_24108789_4\" WHERE \"player\"='Steve Stricker';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24108789_4\" (\n \"num\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"winnings\" real,\n \"after\" real,\n \"before\" real\n);\n\nQuestion: List all before numbers when Geoff Ogilvy was playing."
},
{
"role": "assistant",
"content": "SELECT \"before\" FROM \"table1_24108789_4\" WHERE \"player\"='Geoff Ogilvy';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"reset_points\" (\n \"num\" real,\n \"player\" text,\n \"country\" text,\n \"points\" real,\n \"reset_points\" real,\n \"events\" real\n);\n\nQuestion: Name the least events for number 7"
},
{
"role": "assistant",
"content": "SELECT MIN(\"events\") FROM \"reset_points\" WHERE \"num\"=7;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"reset_points\" (\n \"num\" real,\n \"player\" text,\n \"country\" text,\n \"points\" real,\n \"reset_points\" real,\n \"events\" real\n);\n\nQuestion: Name the number of events for 3031"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"events\") FROM \"reset_points\" WHERE \"points\"=3031;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"reset_points\" (\n \"num\" real,\n \"player\" text,\n \"country\" text,\n \"points\" real,\n \"reset_points\" real,\n \"events\" real\n);\n\nQuestion: Name the player for 22 events"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"reset_points\" WHERE \"events\"=22;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"reset_points\" (\n \"num\" real,\n \"player\" text,\n \"country\" text,\n \"points\" real,\n \"reset_points\" real,\n \"events\" real\n);\n\nQuestion: Name the least points for number 6"
},
{
"role": "assistant",
"content": "SELECT MIN(\"points\") FROM \"reset_points\" WHERE \"num\"=6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"reset_points\" (\n \"num\" real,\n \"player\" text,\n \"country\" text,\n \"points\" real,\n \"reset_points\" real,\n \"events\" real\n);\n\nQuestion: Name the most number for steve stricker"
},
{
"role": "assistant",
"content": "SELECT MAX(\"num\") FROM \"reset_points\" WHERE \"player\"='Steve Stricker';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"reset_points\" (\n \"num\" real,\n \"player\" text,\n \"country\" text,\n \"points\" real,\n \"reset_points\" real,\n \"events\" real\n);\n\nQuestion: Name the total number of points for 800 reset"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"points\") FROM \"reset_points\" WHERE \"reset_points\"=800;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"coakley_pct\" text,\n \"coakley_votes\" real,\n \"brown_pct\" text,\n \"brown_votes\" real,\n \"kennedy_pct\" text,\n \"kennedy_votes\" real\n);\n\nQuestion: What percentage did kennedy win while coakly won 37.9%"
},
{
"role": "assistant",
"content": "SELECT \"kennedy_pct\" FROM \"by_county\" WHERE \"coakley_pct\"='37.9%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"coakley_pct\" text,\n \"coakley_votes\" real,\n \"brown_pct\" text,\n \"brown_votes\" real,\n \"kennedy_pct\" text,\n \"kennedy_votes\" real\n);\n\nQuestion: How many votes did kennedy win when coakley won 66.2%"
},
{
"role": "assistant",
"content": "SELECT MIN(\"kennedy_votes\") FROM \"by_county\" WHERE \"coakley_pct\"='66.2%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"coakley_pct\" text,\n \"coakley_votes\" real,\n \"brown_pct\" text,\n \"brown_votes\" real,\n \"kennedy_pct\" text,\n \"kennedy_votes\" real\n);\n\nQuestion: What was the percentage of votes for coakley when kennedy won 1.6%"
},
{
"role": "assistant",
"content": "SELECT \"coakley_pct\" FROM \"by_county\" WHERE \"kennedy_pct\"='1.6%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"coakley_pct\" text,\n \"coakley_votes\" real,\n \"brown_pct\" text,\n \"brown_votes\" real,\n \"kennedy_pct\" text,\n \"kennedy_votes\" real\n);\n\nQuestion: How many votes did kennedy win when coaklely won 2139 votes?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"kennedy_votes\") FROM \"by_county\" WHERE \"coakley_votes\"=2139;"
}
]
|
[
{
"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 \"location\" text,\n \"final_score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: How many locations did the team play at on week 7?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location\") FROM \"schedule\" WHERE \"week\"=7;"
}
]
|
[
{
"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 \"location\" text,\n \"final_score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the result of the games VS the Lions?"
},
{
"role": "assistant",
"content": "SELECT \"final_score\" FROM \"schedule\" WHERE \"opponent\"='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 \"location\" text,\n \"final_score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Name the number of dates for alouettes"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"date\") FROM \"schedule\" WHERE \"opponent\"='Alouettes';"
}
]
|
[
{
"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 \"location\" text,\n \"final_score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Name the least attendance for l 36\u20131"
},
{
"role": "assistant",
"content": "SELECT MIN(\"attendance\") FROM \"schedule\" WHERE \"final_score\"='L 36\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 \"location\" text,\n \"final_score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Name the final score for exhibition stadium for september 10"
},
{
"role": "assistant",
"content": "SELECT \"final_score\" FROM \"schedule\" WHERE \"location\"='Exhibition Stadium' AND \"date\"='September 10';"
}
]
|
[
{
"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 \"location\" text,\n \"final_score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Name the number of record for week 11"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"record\") FROM \"schedule\" WHERE \"week\"=11;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"location\" text,\n \"final_score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Name the opponent for week 12"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"week\"=12;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"location\" text,\n \"final_score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Name the total number of opponent for october 3"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"opponent\") FROM \"schedule\" WHERE \"date\"='October 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\" real,\n \"date\" text,\n \"opponent\" text,\n \"location\" text,\n \"final_score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Name the final score for week 5"
},
{
"role": "assistant",
"content": "SELECT \"final_score\" FROM \"schedule\" WHERE \"week\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24132054_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who directed episode 28 in the series?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_24132054_1\" WHERE \"no_in_series\"=28;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24132054_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who directed \"go your own way\"?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_24132054_1\" WHERE \"title\"='\\\"Go Your Own Way\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24132054_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What episode in the season was \"easy as pie\"?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"no_in_season\") FROM \"table1_24132054_1\" WHERE \"title\"='\\\"Easy as Pie\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24132083_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What in the series number of the episode written by Lauren Gussis?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"no_in_series\") FROM \"table1_24132083_1\" WHERE \"written_by\"='Lauren Gussis';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24132083_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: On how many different dates did the episode directed by Marcos Siega and written by Scott Buck air for the first time?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"original_air_date\") FROM \"table1_24132083_1\" WHERE \"directed_by\"='Marcos Siega' AND \"written_by\"='Scott Buck';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24132083_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who was the director of the episode called \"If I had a hammer\"?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_24132083_1\" WHERE \"title\"='\\\"If I Had a Hammer\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24132083_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What's the series number of the episode written by Tim Schlattmann?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"no_in_series\") FROM \"table1_24132083_1\" WHERE \"written_by\"='Tim Schlattmann';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wct_1985\" (\n \"date_final\" text,\n \"tournament\" text,\n \"commercial_name\" text,\n \"category\" text,\n \"prize_money_surface\" text,\n \"final_match\" text,\n \"semifinal_matches\" text\n);\n\nQuestion: Who played in the semi finals matches at the Buick WCT finals?"
},
{
"role": "assistant",
"content": "SELECT \"semifinal_matches\" FROM \"wct_1985\" WHERE \"commercial_name\"='Buick WCT Finals';"
}
]
|
[
{
"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 \"location\" text,\n \"final_score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Name the date for l 28\u201315 "
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"final_score\"='L 28\u201315';"
}
]
|
[
{
"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 \"location\" text,\n \"final_score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: When tiger-cats is the opponent what is the location?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"schedule\" WHERE \"opponent\"='Tiger-Cats';"
}
]
|
[
{
"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 \"location\" text,\n \"final_score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: When 4 is the week what is the location?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"schedule\" WHERE \"week\"=4;"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.