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 \"itf_singles_finals_18_12_6\" (\n \"outcome\" text,\n \"date\" text,\n \"championship\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What is Score, when Outcome is Winner, and when Opponent is Angela Haynes?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"itf_singles_finals_18_12_6\" WHERE \"outcome\"='winner' AND \"opponent\"='angela haynes';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"itf_singles_finals_18_12_6\" (\n \"outcome\" text,\n \"date\" text,\n \"championship\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What is Date, when Championship is Mackay?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"itf_singles_finals_18_12_6\" WHERE \"championship\"='mackay';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"itf_singles_finals_18_12_6\" (\n \"outcome\" text,\n \"date\" text,\n \"championship\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What is Opponent, when Championship is P\u00e9tange?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"itf_singles_finals_18_12_6\" WHERE \"championship\"='p\u00e9tange';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"itf_singles_finals_18_12_6\" (\n \"outcome\" text,\n \"date\" text,\n \"championship\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What is Outcome, when Score is 1-6, 3-6?"
},
{
"role": "assistant",
"content": "SELECT \"outcome\" FROM \"itf_singles_finals_18_12_6\" WHERE \"score\"='1-6, 3-6';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"itf_singles_finals_18_12_6\" (\n \"outcome\" text,\n \"date\" text,\n \"championship\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What is Date, when Score is 6-3, 4-6, 0-6?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"itf_singles_finals_18_12_6\" WHERE \"score\"='6-3, 4-6, 0-6';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"itf_singles_finals_18_12_6\" (\n \"outcome\" text,\n \"date\" text,\n \"championship\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What is Score, when Opponent is Natalia Rizhonkova?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"itf_singles_finals_18_12_6\" WHERE \"opponent\"='natalia rizhonkova';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"nuggets_points\" real,\n \"opponents\" real,\n \"record\" text,\n \"streak\" text\n);\n\nQuestion: Which Game has a Nugget points of 89?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"game\") FROM \"game_log\" WHERE \"nuggets_points\"=89;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"nuggets_points\" real,\n \"opponents\" real,\n \"record\" text,\n \"streak\" text\n);\n\nQuestion: Which Record has a Result of win, and a Streak of won 1, and a Game of 47?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"result\"='win' AND \"streak\"='won 1' AND \"game\"=47;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"nuggets_points\" real,\n \"opponents\" real,\n \"record\" text,\n \"streak\" text\n);\n\nQuestion: How many Opponents have a Result of win, and Nuggets points smaller than 115, and an Opponent of washington?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"opponents\") FROM \"game_log\" WHERE \"result\"='win' AND \"nuggets_points\"<115 AND \"opponent\"='washington';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"nuggets_points\" real,\n \"opponents\" real,\n \"record\" text,\n \"streak\" text\n);\n\nQuestion: How many Opponents have a Result of loss, and a Game smaller than 49, and Nuggets points of 108?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"opponents\") FROM \"game_log\" WHERE \"result\"='loss' AND \"game\"<49 AND \"nuggets_points\"=108;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"nuggets_points\" real,\n \"opponents\" real,\n \"record\" text,\n \"streak\" text\n);\n\nQuestion: Which Result has a Game smaller than 37, and a Streak of lost 1, and a Record of 4-9?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"game_log\" WHERE \"game\"<37 AND \"streak\"='lost 1' AND \"record\"='4-9';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men\" (\n \"event\" text,\n \"date\" text,\n \"round\" text,\n \"name\" text,\n \"nationality\" text,\n \"time\" text,\n \"record\" text\n);\n\nQuestion: What round has a name of vladimir morozov?"
},
{
"role": "assistant",
"content": "SELECT \"round\" FROM \"men\" WHERE \"name\"='vladimir morozov';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men\" (\n \"event\" text,\n \"date\" text,\n \"round\" text,\n \"name\" text,\n \"nationality\" text,\n \"time\" text,\n \"record\" text\n);\n\nQuestion: What is the record for the date of 12 december?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"men\" WHERE \"date\"='12 december';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men\" (\n \"event\" text,\n \"date\" text,\n \"round\" text,\n \"name\" text,\n \"nationality\" text,\n \"time\" text,\n \"record\" text\n);\n\nQuestion: What is the date for the name ryan lochte?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"men\" WHERE \"name\"='ryan lochte';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men\" (\n \"event\" text,\n \"date\" text,\n \"round\" text,\n \"name\" text,\n \"nationality\" text,\n \"time\" text,\n \"record\" text\n);\n\nQuestion: What is the record for the date 15 december, and a round of final?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"men\" WHERE \"date\"='15 december' AND \"round\"='final';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What is the lowest attendance for week 11?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"attendance\") 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 \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What is the total number of spectators on week 4?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"attendance\") FROM \"schedule\" WHERE \"week\"=4;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"connecticut\" (\n \"poll_source\" text,\n \"sample_size\" real,\n \"margin_of_error\" real,\n \"date\" text,\n \"democrat\" text,\n \"republican\" text\n);\n\nQuestion: What was the sample size for polling on May 2-7, 2007 for Hillary Clinton?"
},
{
"role": "assistant",
"content": "SELECT \"sample_size\" FROM \"connecticut\" WHERE \"date\"='may 2-7, 2007' AND \"democrat\"='hillary clinton';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"connecticut\" (\n \"poll_source\" text,\n \"sample_size\" real,\n \"margin_of_error\" real,\n \"date\" text,\n \"democrat\" text,\n \"republican\" text\n);\n\nQuestion: Who was the republican when hillary clinton was the democrat and the sample size was more than 1087 with a margin of error of 2.6?"
},
{
"role": "assistant",
"content": "SELECT \"republican\" FROM \"connecticut\" WHERE \"sample_size\">1087 AND \"democrat\"='hillary clinton' AND \"margin_of_error\"=2.6;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"connecticut\" (\n \"poll_source\" text,\n \"sample_size\" real,\n \"margin_of_error\" real,\n \"date\" text,\n \"democrat\" text,\n \"republican\" text\n);\n\nQuestion: Where is the poll source when Hillary clinton was the democrat, john mccain was the republican, and the margin of error was less than 4.5 on May 2-7, 2007?"
},
{
"role": "assistant",
"content": "SELECT \"poll_source\" FROM \"connecticut\" WHERE \"democrat\"='hillary clinton' AND \"margin_of_error\"<4.5 AND \"republican\"='john mccain' AND \"date\"='may 2-7, 2007';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"connecticut\" (\n \"poll_source\" text,\n \"sample_size\" real,\n \"margin_of_error\" real,\n \"date\" text,\n \"democrat\" text,\n \"republican\" text\n);\n\nQuestion: What si the total sample size at rasmussen reports when the margin of error was bigger than 4.5?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"sample_size\") FROM \"connecticut\" WHERE \"poll_source\"='rasmussen reports' AND \"margin_of_error\">4.5;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"connecticut\" (\n \"poll_source\" text,\n \"sample_size\" real,\n \"margin_of_error\" real,\n \"date\" text,\n \"democrat\" text,\n \"republican\" text\n);\n\nQuestion: What is the date that the polls were going on at quinnipiac when john mccain was the republican, barack obama was the democrat and the sample size was bigger than 1427?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"connecticut\" WHERE \"republican\"='john mccain' AND \"poll_source\"='quinnipiac' AND \"democrat\"='barack obama' AND \"sample_size\">1427;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: What is To Par, when Player is Greg Norman?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"final_round\" WHERE \"player\"='greg norman';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: What is Score, when Money ( $ ) is 32,200, and when Player is Chip Beck?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"final_round\" WHERE \"money\"='32,200' AND \"player\"='chip beck';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: What is Money ( $ ), when Player is Greg Norman?"
},
{
"role": "assistant",
"content": "SELECT \"money\" FROM \"final_round\" WHERE \"player\"='greg norman';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: What is Player, when Country is United States, and when Score is 73-76-72-66=287?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"final_round\" WHERE \"country\"='united states' AND \"score\"='73-76-72-66=287';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: What is To Par, when Money ( $ ) is Playoff, and when Score is 68-73-77-65=283?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"final_round\" WHERE \"money\"='playoff' AND \"score\"='68-73-77-65=283';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What country was Ernie Els from?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"second_round\" WHERE \"player\"='ernie els';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What was the par for the t5 place player Steve Jones?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"second_round\" WHERE \"place\"='t5' AND \"player\"='steve jones';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"vassal_states\" (\n \"state\" text,\n \"type\" text,\n \"name\" text,\n \"title\" text,\n \"royal_house\" text,\n \"from\" text\n);\n\nQuestion: What is the title for Hui that ruled from 864 BC?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"vassal_states\" WHERE \"name\"='hui' AND \"from\"='864 bc';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"vassal_states\" (\n \"state\" text,\n \"type\" text,\n \"name\" text,\n \"title\" text,\n \"royal_house\" text,\n \"from\" text\n);\n\nQuestion: What type is You from the state of Chen?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"vassal_states\" WHERE \"state\"='chen' AND \"name\"='you';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"vassal_states\" (\n \"state\" text,\n \"type\" text,\n \"name\" text,\n \"title\" text,\n \"royal_house\" text,\n \"from\" text\n);\n\nQuestion: Xiong Yan the Younger of the house of Mi ruled from what year?"
},
{
"role": "assistant",
"content": "SELECT \"from\" FROM \"vassal_states\" WHERE \"royal_house\"='mi' AND \"name\"='xiong yan the younger';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"semifinals\" (\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"country\" text,\n \"mark\" text\n);\n\nQuestion: What country had the runner abubaker kaki khamis in lane 5?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"semifinals\" WHERE \"lane\"=5 AND \"name\"='abubaker kaki khamis';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"semifinals\" (\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"country\" text,\n \"mark\" text\n);\n\nQuestion: What is the highest heat for a lane past 1 and mark of 1:48.61?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"heat\") FROM \"semifinals\" WHERE \"lane\">1 AND \"mark\"='1:48.61';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goals\" (\n \"rank\" real,\n \"name\" text,\n \"years\" text,\n \"league\" real,\n \"total\" real\n);\n\nQuestion: What is average for Benito Lorenzi league when total is smaller than 143?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"league\") FROM \"goals\" WHERE \"name\"='benito lorenzi' AND \"total\"<143;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goals\" (\n \"rank\" real,\n \"name\" text,\n \"years\" text,\n \"league\" real,\n \"total\" real\n);\n\nQuestion: Which league has total smaller than 284, with Sandro Mazzola league?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"league\") FROM \"goals\" WHERE \"total\"<284 AND \"name\"='sandro mazzola';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"parliamentary_elections\" (\n \"election\" real,\n \"number_of_pnc_votes\" text,\n \"share_of_votes\" text,\n \"seats\" text,\n \"outcome_of_election\" text\n);\n\nQuestion: What is the earliest election with 2 seats and the outcome of the election of minority in parliament?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"election\") FROM \"parliamentary_elections\" WHERE \"outcome_of_election\"='minority in parliament' AND \"seats\"='2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"parliamentary_elections\" (\n \"election\" real,\n \"number_of_pnc_votes\" text,\n \"share_of_votes\" text,\n \"seats\" text,\n \"outcome_of_election\" text\n);\n\nQuestion: How many seats does the election with the outcome of election of minority in parliament and 186,226 PNC votes have?"
},
{
"role": "assistant",
"content": "SELECT \"seats\" FROM \"parliamentary_elections\" WHERE \"outcome_of_election\"='minority in parliament' AND \"number_of_pnc_votes\"='186,226';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"parliamentary_elections\" (\n \"election\" real,\n \"number_of_pnc_votes\" text,\n \"share_of_votes\" text,\n \"seats\" text,\n \"outcome_of_election\" text\n);\n\nQuestion: How many seats did the election before 2004 with 3.4% share of votes have?"
},
{
"role": "assistant",
"content": "SELECT \"seats\" FROM \"parliamentary_elections\" WHERE \"election\"<2004 AND \"share_of_votes\"='3.4%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"parliamentary_elections\" (\n \"election\" real,\n \"number_of_pnc_votes\" text,\n \"share_of_votes\" text,\n \"seats\" text,\n \"outcome_of_election\" text\n);\n\nQuestion: How many PNC votes did the election before 1996 have?"
},
{
"role": "assistant",
"content": "SELECT \"number_of_pnc_votes\" FROM \"parliamentary_elections\" WHERE \"election\"<1996;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many times is the postion S?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"overall\") FROM \"washington_redskins_draft_history\" WHERE \"position\"='s';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: how many times is the name Derek Smith when the round is higher than 3?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"overall\") FROM \"washington_redskins_draft_history\" WHERE \"name\"='derek smith' AND \"round\">3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: what is the lowest overall when the pick is 20?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"overall\") FROM \"washington_redskins_draft_history\" WHERE \"pick\"=20;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: what is the highest round when the overall is less than 17?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"round\") FROM \"washington_redskins_draft_history\" WHERE \"overall\"<17;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_35_20_15\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What is Partner, when Opponents In The Final is Remi Tezuka Shuko Aoyama?"
},
{
"role": "assistant",
"content": "SELECT \"partner\" FROM \"doubles_35_20_15\" WHERE \"opponents_in_the_final\"='remi tezuka shuko aoyama';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_35_20_15\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What is Opponents In The Final, when Score is 4-1 5-4 (7) 4-2?"
},
{
"role": "assistant",
"content": "SELECT \"opponents_in_the_final\" FROM \"doubles_35_20_15\" WHERE \"score\"='4-1 5-4 (7) 4-2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_35_20_15\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What is Date, when Opponents In The Final, is Maria-Fernanda Alves St\u00e9phanie Dubois?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"doubles_35_20_15\" WHERE \"opponents_in_the_final\"='maria-fernanda alves st\u00e9phanie dubois';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Where was the Fury FC 4: High Voltage event held?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"mixed_martial_arts_record\" WHERE \"event\"='fury fc 4: high voltage';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"in\" (\n \"nat\" text,\n \"name\" text,\n \"moving_from\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"ends\" text\n);\n\nQuestion: What's the nat that ends in 2009?"
},
{
"role": "assistant",
"content": "SELECT \"nat\" FROM \"in\" WHERE \"ends\"='2009';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"in\" (\n \"nat\" text,\n \"name\" text,\n \"moving_from\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"ends\" text\n);\n\nQuestion: What is the type when they move from Gimn\u00e0stic?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"in\" WHERE \"moving_from\"='gimn\u00e0stic';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"in\" (\n \"nat\" text,\n \"name\" text,\n \"moving_from\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"ends\" text\n);\n\nQuestion: What's the transfer window that ends in 2012?"
},
{
"role": "assistant",
"content": "SELECT \"transfer_window\" FROM \"in\" WHERE \"ends\"='2012';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"in\" (\n \"nat\" text,\n \"name\" text,\n \"moving_from\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"ends\" text\n);\n\nQuestion: What's the type that ends in 2009?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"in\" WHERE \"ends\"='2009';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"in\" (\n \"nat\" text,\n \"name\" text,\n \"moving_from\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"ends\" text\n);\n\nQuestion: What's the moving of the Esp with a transfer and named De La Red?"
},
{
"role": "assistant",
"content": "SELECT \"moving_from\" FROM \"in\" WHERE \"type\"='transfer' AND \"nat\"='esp' AND \"name\"='de la red';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"in\" (\n \"nat\" text,\n \"name\" text,\n \"moving_from\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"ends\" text\n);\n\nQuestion: What type is Gonz\u00e1lez?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"in\" WHERE \"name\"='gonz\u00e1lez';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"pos\" real,\n \"artist\" text,\n \"single\" text,\n \"year\" real,\n \"sales\" real,\n \"peak\" real\n);\n\nQuestion: How many sales took place with a peak of 1 for Boris?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"sales\") FROM \"singles\" WHERE \"peak\"=1 AND \"artist\"='boris';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the record in the game where the opponent was the cincinnati royals?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"opponent\"='cincinnati royals';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the attendance of game 25 when the played the San Francisco Warriors?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"opponent\"='san francisco warriors' AND \"game\"=25;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"250cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text\n);\n\nQuestion: Which manufacturer has a grid of 6?"
},
{
"role": "assistant",
"content": "SELECT \"manufacturer\" FROM \"250cc_classification\" WHERE \"grid\"='6';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"250cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text\n);\n\nQuestion: Who is the rider for Honda with a grid of 25?"
},
{
"role": "assistant",
"content": "SELECT \"rider\" FROM \"250cc_classification\" WHERE \"manufacturer\"='honda' AND \"grid\"='25';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"250cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text\n);\n\nQuestion: How many laps has a grid of 5?"
},
{
"role": "assistant",
"content": "SELECT \"laps\" FROM \"250cc_classification\" WHERE \"grid\"='5';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"250cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text\n);\n\nQuestion: Who is the rider whose time/retired is accident?"
},
{
"role": "assistant",
"content": "SELECT \"rider\" FROM \"250cc_classification\" WHERE \"time_retired\"='accident';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"250cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text\n);\n\nQuestion: How many laps have a time/retired of +23.080?"
},
{
"role": "assistant",
"content": "SELECT \"laps\" FROM \"250cc_classification\" WHERE \"time_retired\"='+23.080';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"250cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text\n);\n\nQuestion: Who is the manufacturer for Henk Vd Lagemaat?"
},
{
"role": "assistant",
"content": "SELECT \"manufacturer\" FROM \"250cc_classification\" WHERE \"rider\"='henk vd lagemaat';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performance_values_for_genome_sequencing\" (\n \"technology\" text,\n \"analysis_time\" text,\n \"average_read_length\" text,\n \"throughput_including_analysis\" text,\n \"gel_pouring\" text\n);\n\nQuestion: what is the technology when the gel pouring is no and the analysis time is 8 days?"
},
{
"role": "assistant",
"content": "SELECT \"technology\" FROM \"performance_values_for_genome_sequencing\" WHERE \"gel_pouring\"='no' AND \"analysis_time\"='8 days';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performance_values_for_genome_sequencing\" (\n \"technology\" text,\n \"analysis_time\" text,\n \"average_read_length\" text,\n \"throughput_including_analysis\" text,\n \"gel_pouring\" text\n);\n\nQuestion: what is the throughput (including analysis) when the analysis time is 4 hours?"
},
{
"role": "assistant",
"content": "SELECT \"throughput_including_analysis\" FROM \"performance_values_for_genome_sequencing\" WHERE \"analysis_time\"='4 hours';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_64\" (\n \"date\" text,\n \"time\" text,\n \"home\" text,\n \"geust\" text,\n \"result\" text\n);\n\nQuestion: What is Geust, when Result is 0:9?"
},
{
"role": "assistant",
"content": "SELECT \"geust\" FROM \"round_of_64\" WHERE \"result\"='0:9';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_64\" (\n \"date\" text,\n \"time\" text,\n \"home\" text,\n \"geust\" text,\n \"result\" text\n);\n\nQuestion: What is Home, when Time is 18:00, and when Geust is Servette FC (CHL)?"
},
{
"role": "assistant",
"content": "SELECT \"home\" FROM \"round_of_64\" WHERE \"time\"='18:00' AND \"geust\"='servette fc (chl)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_64\" (\n \"date\" text,\n \"time\" text,\n \"home\" text,\n \"geust\" text,\n \"result\" text\n);\n\nQuestion: What is Time, when Geust is AC Bellinzona (CHL)?"
},
{
"role": "assistant",
"content": "SELECT \"time\" FROM \"round_of_64\" WHERE \"geust\"='ac bellinzona (chl)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"squad_changes\" (\n \"nat\" text,\n \"name\" text,\n \"moving_to\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"transfer_fee\" text,\n \"source\" text\n);\n\nQuestion: What was the transfer fee when winter was the transfer window?"
},
{
"role": "assistant",
"content": "SELECT \"transfer_fee\" FROM \"squad_changes\" WHERE \"transfer_window\"='winter';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"squad_changes\" (\n \"nat\" text,\n \"name\" text,\n \"moving_to\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"transfer_fee\" text,\n \"source\" text\n);\n\nQuestion: What transfer fee has both winter as the transfer window, and Madureira as the moving to?"
},
{
"role": "assistant",
"content": "SELECT \"transfer_fee\" FROM \"squad_changes\" WHERE \"transfer_window\"='winter' AND \"moving_to\"='madureira';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"squad_changes\" (\n \"nat\" text,\n \"name\" text,\n \"moving_to\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"transfer_fee\" text,\n \"source\" text\n);\n\nQuestion: What was the moving that has a free transfer fee, and the nationality of CYP, and winter as the transfer window?"
},
{
"role": "assistant",
"content": "SELECT \"moving_to\" FROM \"squad_changes\" WHERE \"transfer_fee\"='free' AND \"nat\"='cyp' AND \"transfer_window\"='winter';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"squad_changes\" (\n \"nat\" text,\n \"name\" text,\n \"moving_to\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"transfer_fee\" text,\n \"source\" text\n);\n\nQuestion: Who is moving to Metalurh Donetsk?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"squad_changes\" WHERE \"moving_to\"='metalurh donetsk';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"squad_changes\" (\n \"nat\" text,\n \"name\" text,\n \"moving_to\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"transfer_fee\" text,\n \"source\" text\n);\n\nQuestion: The player moving to Villa Rio has what transfer fee?"
},
{
"role": "assistant",
"content": "SELECT \"transfer_fee\" FROM \"squad_changes\" WHERE \"moving_to\"='villa rio';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"squad_changes\" (\n \"nat\" text,\n \"name\" text,\n \"moving_to\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"transfer_fee\" text,\n \"source\" text\n);\n\nQuestion: Emerson has what transfer window?"
},
{
"role": "assistant",
"content": "SELECT \"transfer_window\" FROM \"squad_changes\" WHERE \"name\"='emerson';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Where was the fight located that lasted a time of 2:33?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"mixed_martial_arts_record\" WHERE \"time\"='2:33';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What is the total number of Game, when Attendance is \"18,568\"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"game\") FROM \"game_log\" WHERE \"attendance\"='18,568';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What is the sum of Game, when Attendance is greater than 18,007, and when Opponent is \"Minnesota Wild\"?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"game\") FROM \"game_log\" WHERE \"attendance\">'18,007' AND \"opponent\"='minnesota wild';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"leading_copper_producing_mines\" (\n \"rank\" real,\n \"mine\" text,\n \"county_and_state\" text,\n \"operator\" text,\n \"source_of_copper\" text,\n \"capacity_thousands_of_metric_tons\" real\n);\n\nQuestion: In Silver Bow County, Montana, when the capicity is more than 45 tons, what's the highest rank found?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"rank\") FROM \"leading_copper_producing_mines\" WHERE \"county_and_state\"='silver bow county, montana' AND \"capacity_thousands_of_metric_tons\">45;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"leading_copper_producing_mines\" (\n \"rank\" real,\n \"mine\" text,\n \"county_and_state\" text,\n \"operator\" text,\n \"source_of_copper\" text,\n \"capacity_thousands_of_metric_tons\" real\n);\n\nQuestion: In Pinal County, Arizona, when there's a capacity of over 5 metric tons, and the rank is under 14, what's the mine called?"
},
{
"role": "assistant",
"content": "SELECT \"mine\" FROM \"leading_copper_producing_mines\" WHERE \"rank\"<14 AND \"capacity_thousands_of_metric_tons\">5 AND \"county_and_state\"='pinal county, arizona';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"quarterfinals_standing\" (\n \"rank\" real,\n \"team\" text,\n \"loss\" real,\n \"sets_won\" real,\n \"sets_lost\" real,\n \"percentage\" text\n);\n\nQuestion: How many sets lost have a loss smaller than 3 and a rank larger than 1?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"sets_lost\") FROM \"quarterfinals_standing\" WHERE \"loss\"<3 AND \"rank\">1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"record_by_conference\" (\n \"conference\" text,\n \"bids\" real,\n \"record\" text,\n \"win_pct\" real,\n \"quarterfinals\" text,\n \"semifinals\" text,\n \"final\" text,\n \"champions\" text\n);\n\nQuestion: What is Bids, when Champions is \"1\"?"
},
{
"role": "assistant",
"content": "SELECT \"bids\" FROM \"record_by_conference\" WHERE \"champions\"='1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"tournament\" text,\n \"surface\" text,\n \"week\" text,\n \"winner_and_score\" text,\n \"finalist\" text,\n \"semifinalists\" text\n);\n\nQuestion: Which finalist played in the week of October 21?"
},
{
"role": "assistant",
"content": "SELECT \"finalist\" FROM \"singles\" WHERE \"week\"='october 21';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"tournament\" text,\n \"surface\" text,\n \"week\" text,\n \"winner_and_score\" text,\n \"finalist\" text,\n \"semifinalists\" text\n);\n\nQuestion: On what surface did they play the match in the week of October 21?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"singles\" WHERE \"week\"='october 21';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"tournament\" text,\n \"surface\" text,\n \"week\" text,\n \"winner_and_score\" text,\n \"finalist\" text,\n \"semifinalists\" text\n);\n\nQuestion: Who was the finalist in the Monte Carlo Tournament?"
},
{
"role": "assistant",
"content": "SELECT \"finalist\" FROM \"singles\" WHERE \"tournament\"='monte carlo';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the Rank of the Nation with more than 1 Gold and a more than 4 Total medals?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"rank\") FROM \"medal_table\" WHERE \"gold\">1 AND \"total\">4;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the Gold for the Nation in Rank 4 with less than 1 Silver?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"gold\") FROM \"medal_table\" WHERE \"rank\"=4 AND \"silver\"<1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"in\" (\n \"nat\" text,\n \"name\" text,\n \"moving_from\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"transfer_fee\" text\n);\n\nQuestion: What is the transfer window for Steven Thompson?"
},
{
"role": "assistant",
"content": "SELECT \"transfer_window\" FROM \"in\" WHERE \"name\"='steven thompson';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"in\" (\n \"nat\" text,\n \"name\" text,\n \"moving_from\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"transfer_fee\" text\n);\n\nQuestion: What type is Kevin Muscat?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"in\" WHERE \"name\"='kevin muscat';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"rank\" text,\n \"heat\" real,\n \"country\" text,\n \"backstroke_leg\" text,\n \"breaststroke_leg\" text,\n \"butterfly_leg\" text,\n \"freestyle_leg\" text\n);\n\nQuestion: What is the freestyle leg for the Netherlands?"
},
{
"role": "assistant",
"content": "SELECT \"freestyle_leg\" FROM \"heats\" WHERE \"country\"='netherlands';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"composition_of_common_crystalloid_soluti\" (\n \"solution\" text,\n \"other_name\" text,\n \"na_mmol_l\" real,\n \"cl_mmol_l\" real,\n \"glucose_mmol_l\" real,\n \"glucose_mg_dl\" real\n);\n\nQuestion: How much is the lowest glucose(mmol/L) with [Na +] under 0?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"glucose_mmol_l\") FROM \"composition_of_common_crystalloid_soluti\" WHERE \"na_mmol_l\"<0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"composition_of_common_crystalloid_soluti\" (\n \"solution\" text,\n \"other_name\" text,\n \"na_mmol_l\" real,\n \"cl_mmol_l\" real,\n \"glucose_mmol_l\" real,\n \"glucose_mg_dl\" real\n);\n\nQuestion: What is the highest glucose(mg/dl) with a solution of 2/3d & 1/3s and glucose(mmol/L) less than 185?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"glucose_mg_dl\") FROM \"composition_of_common_crystalloid_soluti\" WHERE \"solution\"='2/3d & 1/3s' AND \"glucose_mmol_l\"<185;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"composition_of_common_crystalloid_soluti\" (\n \"solution\" text,\n \"other_name\" text,\n \"na_mmol_l\" real,\n \"cl_mmol_l\" real,\n \"glucose_mmol_l\" real,\n \"glucose_mg_dl\" real\n);\n\nQuestion: What is the largest [Cl -](mmol/L) with a solution of D5NS and [Na+](mmol/L) less than 154?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"cl_mmol_l\") FROM \"composition_of_common_crystalloid_soluti\" WHERE \"solution\"='d5ns' AND \"na_mmol_l\"<154;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"single_track_listings\" (\n \"name\" text,\n \"location\" text,\n \"format\" text,\n \"record_label\" text,\n \"release_date\" text\n);\n\nQuestion: What is the release date when the location is Europe?"
},
{
"role": "assistant",
"content": "SELECT \"release_date\" FROM \"single_track_listings\" WHERE \"location\"='europe';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"single_track_listings\" (\n \"name\" text,\n \"location\" text,\n \"format\" text,\n \"record_label\" text,\n \"release_date\" text\n);\n\nQuestion: What is the location when the name is \"I feel free\" b/w \"n.s.u.\", with a release date of December 1966, on the Atco 6462 label?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"single_track_listings\" WHERE \"name\"='\\\"i feel free\\\" b/w \\\"n.s.u.\\\"' AND \"release_date\"='december 1966' AND \"record_label\"='atco 6462';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"single_track_listings\" (\n \"name\" text,\n \"location\" text,\n \"format\" text,\n \"record_label\" text,\n \"release_date\" text\n);\n\nQuestion: What is the release in Germany?"
},
{
"role": "assistant",
"content": "SELECT \"release_date\" FROM \"single_track_listings\" WHERE \"location\"='germany';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"single_track_listings\" (\n \"name\" text,\n \"location\" text,\n \"format\" text,\n \"record_label\" text,\n \"release_date\" text\n);\n\nQuestion: What is the name with a release date of December 1966, and a Location of UK?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"single_track_listings\" WHERE \"release_date\"='december 1966' AND \"location\"='uk';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"single_track_listings\" (\n \"name\" text,\n \"location\" text,\n \"format\" text,\n \"record_label\" text,\n \"release_date\" text\n);\n\nQuestion: What is the US release date?"
},
{
"role": "assistant",
"content": "SELECT \"release_date\" FROM \"single_track_listings\" WHERE \"location\"='us';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"single_track_listings\" (\n \"name\" text,\n \"location\" text,\n \"format\" text,\n \"record_label\" text,\n \"release_date\" text\n);\n\nQuestion: What is the name in the UK, with a release date of December 1966?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"single_track_listings\" WHERE \"location\"='uk' AND \"release_date\"='december 1966';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_14\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"box_score\" text,\n \"report\" text\n);\n\nQuestion: What away team scored 107-104?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_14\" WHERE \"score\"='107-104';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_14\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"box_score\" text,\n \"report\" text\n);\n\nQuestion: What was the away team for the New Zealand breakers?"
},
{
"role": "assistant",
"content": "SELECT \"report\" FROM \"round_14\" WHERE \"away_team\"='new zealand breakers';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.