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 \"specific_fuel_consumption_sfc_specific_i\" (\n \"engine_type\" text,\n \"scenario\" text,\n \"sfc_in_lb_lbf_h\" real,\n \"sfc_in_g_k_n_s\" real,\n \"specific_impulse_s\" real,\n \"effective_exhaust_velocity_m_s\" real\n);\n\nQuestion: What is the specific impulse for the engine with a scenario of sr-71 at mach 3.2 (wet)?"
},
{
"role": "assistant",
"content": "SELECT \"specific_impulse_s\" FROM \"specific_fuel_consumption_sfc_specific_i\" WHERE \"scenario\"='sr-71 at mach 3.2 (wet)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"specific_fuel_consumption_sfc_specific_i\" (\n \"engine_type\" text,\n \"scenario\" text,\n \"sfc_in_lb_lbf_h\" real,\n \"sfc_in_g_k_n_s\" real,\n \"specific_impulse_s\" real,\n \"effective_exhaust_velocity_m_s\" real\n);\n\nQuestion: what is the average specific impulse for engines that have a SFC in lb/(lbf\u00b7h) of 7.95, and a Effective exhaust velocity (m/s) larger than 4,423"
},
{
"role": "assistant",
"content": "SELECT AVG(\"specific_impulse_s\") FROM \"specific_fuel_consumption_sfc_specific_i\" WHERE \"sfc_in_lb_lbf_h\"=7.95 AND \"effective_exhaust_velocity_m_s\">'4,423';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"nationality\" text,\n \"college\" text\n);\n\nQuestion: The draft pick that was taken before round 4 went to what college?"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"draft_picks\" WHERE \"round\"<4;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"nationality\" text,\n \"college\" text\n);\n\nQuestion: What player went to DePaul University?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"draft_picks\" WHERE \"college\"='depaul';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"team_1\" text,\n \"score\" text,\n \"team_2\" text,\n \"1st_round\" text,\n \"2nd_round\" text\n);\n\nQuestion: What is 1st Round, when Team 1 is Sporting Toulon Var (D2)?"
},
{
"role": "assistant",
"content": "SELECT \"1st_round\" FROM \"round_of_16\" WHERE \"team_1\"='sporting toulon var (d2)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"team_1\" text,\n \"score\" text,\n \"team_2\" text,\n \"1st_round\" text,\n \"2nd_round\" text\n);\n\nQuestion: What is Score, when 1st Round is 2 - 0, and when Team 2 is Stade Brestois (D1)?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"round_of_16\" WHERE \"1st_round\"='2 - 0' AND \"team_2\"='stade brestois (d1)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"team_1\" text,\n \"score\" text,\n \"team_2\" text,\n \"1st_round\" text,\n \"2nd_round\" text\n);\n\nQuestion: What is Team 2, when Score is 2 - 1?"
},
{
"role": "assistant",
"content": "SELECT \"team_2\" FROM \"round_of_16\" WHERE \"score\"='2 - 1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ufc_on_fox_s_nielsen_rating\" (\n \"event\" text,\n \"date\" text,\n \"rating\" text,\n \"share\" text,\n \"viewers\" text\n);\n\nQuestion: What is Viewers, when Event is Johnson Vs. Moraga?"
},
{
"role": "assistant",
"content": "SELECT \"viewers\" FROM \"ufc_on_fox_s_nielsen_rating\" WHERE \"event\"='johnson vs. moraga';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ufc_on_fox_s_nielsen_rating\" (\n \"event\" text,\n \"date\" text,\n \"rating\" text,\n \"share\" text,\n \"viewers\" text\n);\n\nQuestion: What is Rating, when Event is Johnson Vs. Dodson?"
},
{
"role": "assistant",
"content": "SELECT \"rating\" FROM \"ufc_on_fox_s_nielsen_rating\" WHERE \"event\"='johnson vs. dodson';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ufc_on_fox_s_nielsen_rating\" (\n \"event\" text,\n \"date\" text,\n \"rating\" text,\n \"share\" text,\n \"viewers\" text\n);\n\nQuestion: What is Event, when Viewers is 2.4 Million, and when Rating is 1.4?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"ufc_on_fox_s_nielsen_rating\" WHERE \"viewers\"='2.4 million' AND \"rating\"='1.4';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ufc_on_fox_s_nielsen_rating\" (\n \"event\" text,\n \"date\" text,\n \"rating\" text,\n \"share\" text,\n \"viewers\" text\n);\n\nQuestion: What is Event, when Date is April 20, 2013?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"ufc_on_fox_s_nielsen_rating\" WHERE \"date\"='april 20, 2013';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ufc_on_fox_s_nielsen_rating\" (\n \"event\" text,\n \"date\" text,\n \"rating\" text,\n \"share\" text,\n \"viewers\" text\n);\n\nQuestion: What is Date, when Rating 1.5, and when Event is Johnson Vs. Moraga?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"ufc_on_fox_s_nielsen_rating\" WHERE \"rating\"='1.5' AND \"event\"='johnson vs. moraga';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ufc_on_fox_s_nielsen_rating\" (\n \"event\" text,\n \"date\" text,\n \"rating\" text,\n \"share\" text,\n \"viewers\" text\n);\n\nQuestion: What is Date, when Viewers is 4.4 million?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"ufc_on_fox_s_nielsen_rating\" WHERE \"viewers\"='4.4 million';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What was Tiger Woods' score?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"third_round\" WHERE \"player\"='tiger woods';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: How did Justin Leonard of the United States score?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"third_round\" WHERE \"country\"='united states' AND \"player\"='justin leonard';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Which player is from England?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"third_round\" WHERE \"country\"='england';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Who scored 74-70-67=211 and placed t5?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"third_round\" WHERE \"place\"='t5' AND \"score\"='74-70-67=211';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: Who is the player with a score less than 72 and a to par of +1?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"first_round\" WHERE \"score\"<72 AND \"to_par\"='+1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: Who is the player with a to par of +1?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"first_round\" WHERE \"to_par\"='+1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: What is the to par of player john buczek, who has a t9 place and is from the United States?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"first_round\" WHERE \"place\"='t9' AND \"country\"='united states' AND \"player\"='john buczek';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: What is the to par of player bobby nichols?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"first_round\" WHERE \"player\"='bobby nichols';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: What was the date for XLLP 369?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"release_history\" WHERE \"catalog\"='xllp 369';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: What was the label in the region of Canada?"
},
{
"role": "assistant",
"content": "SELECT \"label\" FROM \"release_history\" WHERE \"region\"='canada';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: What is the format in the region of Europe with an XLCD369 and a label of XL?"
},
{
"role": "assistant",
"content": "SELECT \"format\" FROM \"release_history\" WHERE \"label\"='xl' AND \"catalog\"='xlcd369' AND \"region\"='europe';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: What date was the United States the region?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"release_history\" WHERE \"region\"='united states';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: What was the label in the region of Argentina and had a format of CD?"
},
{
"role": "assistant",
"content": "SELECT \"label\" FROM \"release_history\" WHERE \"format\"='cd' AND \"region\"='argentina';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: What is the catalog with the region of the United States?"
},
{
"role": "assistant",
"content": "SELECT \"catalog\" FROM \"release_history\" WHERE \"region\"='united states';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"november\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: Can you tell me the Opponent that has the November larger than 26, and the Game larger than 18?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule_and_results\" WHERE \"november\">26 AND \"game\">18;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"november\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: Can you tell me the Record that has the Game of 19?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule_and_results\" WHERE \"game\"=19;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"rockets_score\" real,\n \"opponents\" real,\n \"record\" text,\n \"streak\" text\n);\n\nQuestion: Which Date has a Rockets score of 94, and a Game of 66?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"rockets_score\"=94 AND \"game\"=66;"
}
] |
[
{
"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 \"rockets_score\" real,\n \"opponents\" real,\n \"record\" text,\n \"streak\" text\n);\n\nQuestion: Which Opponent has a Rockets score larger than 86, a Streak of won 1, and Opponents smaller than 101?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"rockets_score\">86 AND \"streak\"='won 1' AND \"opponents\"<101;"
}
] |
[
{
"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 \"rockets_score\" real,\n \"opponents\" real,\n \"record\" text,\n \"streak\" text\n);\n\nQuestion: Which Opponent has a Rockets score of 107?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"rockets_score\"=107;"
}
] |
[
{
"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 \"rockets_score\" real,\n \"opponents\" real,\n \"record\" text,\n \"streak\" text\n);\n\nQuestion: Which Opponent has a Date of march 16?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"date\"='march 16';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: When was the score l 111\u2013122 (ot)?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"score\"='l 111\u2013122 (ot)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the score on January 26?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='january 26';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What game was Minnesota the team?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"game\") FROM \"game_log\" WHERE \"team\"='minnesota';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the record of Game 43?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"game\"=43;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What's the record of the game that Leandro Barbosa (32) had the high points?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"high_points\"='leandro barbosa (32)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is the score when the tie no is 29?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"first_round_proper\" WHERE \"tie_no\"='29';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What was the tie no when Watford was the away team?"
},
{
"role": "assistant",
"content": "SELECT \"tie_no\" FROM \"first_round_proper\" WHERE \"away_team\"='watford';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What team was the home team when Luton Town was the home team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"first_round_proper\" WHERE \"away_team\"='luton town';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What team was the home team when the tie no was 27?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"first_round_proper\" WHERE \"tie_no\"='27';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"discography\" (\n \"year\" real,\n \"album\" text,\n \"vocals\" text,\n \"bass\" text,\n \"drums\" text,\n \"label\" text\n);\n\nQuestion: Who played bass in 1994 for the Atlantic label?"
},
{
"role": "assistant",
"content": "SELECT \"bass\" FROM \"discography\" WHERE \"label\"='atlantic' AND \"year\"=1994;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"discography\" (\n \"year\" real,\n \"album\" text,\n \"vocals\" text,\n \"bass\" text,\n \"drums\" text,\n \"label\" text\n);\n\nQuestion: Who played drums for the Gray Race album?"
},
{
"role": "assistant",
"content": "SELECT \"drums\" FROM \"discography\" WHERE \"album\"='the gray race';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"discography\" (\n \"year\" real,\n \"album\" text,\n \"vocals\" text,\n \"bass\" text,\n \"drums\" text,\n \"label\" text\n);\n\nQuestion: Which album had Jay Bentley on bass and Bobby Schayer on drums?"
},
{
"role": "assistant",
"content": "SELECT \"album\" FROM \"discography\" WHERE \"bass\"='jay bentley' AND \"drums\"='bobby schayer';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"discography\" (\n \"year\" real,\n \"album\" text,\n \"vocals\" text,\n \"bass\" text,\n \"drums\" text,\n \"label\" text\n);\n\nQuestion: Who played the bass for the Against the Grain album after 1982?"
},
{
"role": "assistant",
"content": "SELECT \"bass\" FROM \"discography\" WHERE \"year\">1982 AND \"album\"='against the grain';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"premier_division_final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" text\n);\n\nQuestion: What is the position when lost is less than 7?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"position\") FROM \"premier_division_final_table\" WHERE \"lost\"<7;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"premier_division_final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" text\n);\n\nQuestion: What is the largest drawn number when 14 is the position, and goals for is more than 66?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"drawn\") FROM \"premier_division_final_table\" WHERE \"position\"=14 AND \"goals_for\">66;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"premier_division_final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" text\n);\n\nQuestion: What is the played number with points 1 is 80, and goals for is more than 77?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"played\") FROM \"premier_division_final_table\" WHERE \"points_1\"='80' AND \"goals_for\">77;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"premier_division_final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" text\n);\n\nQuestion: What is the number of played when the position is less than 4, and the team is Witton Albion?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"played\") FROM \"premier_division_final_table\" WHERE \"position\"<4 AND \"team\"='witton albion';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"premier_division_final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" text\n);\n\nQuestion: What is the position when the points 1 is 61?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"position\") FROM \"premier_division_final_table\" WHERE \"points_1\"='61';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_schools_in_atherton\" (\n \"school\" text,\n \"locality\" text,\n \"description\" text,\n \"ofsted\" real,\n \"website\" text\n);\n\nQuestion: Where is the locality with Ofsted less than 106478 for Meadowbank Primary and Nursery School?"
},
{
"role": "assistant",
"content": "SELECT \"locality\" FROM \"list_of_schools_in_atherton\" WHERE \"ofsted\"<106478 AND \"school\"='meadowbank primary and nursery school';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_schools_in_atherton\" (\n \"school\" text,\n \"locality\" text,\n \"description\" text,\n \"ofsted\" real,\n \"website\" text\n);\n\nQuestion: What website has an Ofsted less than 106478 in Atherton?"
},
{
"role": "assistant",
"content": "SELECT \"website\" FROM \"list_of_schools_in_atherton\" WHERE \"ofsted\"<106478 AND \"locality\"='atherton';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_schools_in_atherton\" (\n \"school\" text,\n \"locality\" text,\n \"description\" text,\n \"ofsted\" real,\n \"website\" text\n);\n\nQuestion: How many values for Ofsted occurr at Chowbent Primary School?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"ofsted\") FROM \"list_of_schools_in_atherton\" WHERE \"school\"='chowbent primary school';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sports_teams\" (\n \"sport\" text,\n \"league\" text,\n \"club\" text,\n \"founded\" real,\n \"venue\" text,\n \"league_championships\" real,\n \"championship_years\" text\n);\n\nQuestion: Which League championship is the lowest one that has a Venue of penn state ice pavilion, and a Club of penn state nittany lions men's ice hockey?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"league_championships\") FROM \"sports_teams\" WHERE \"venue\"='penn state ice pavilion' AND \"club\"='penn state nittany lions men''s ice hockey';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sports_teams\" (\n \"sport\" text,\n \"league\" text,\n \"club\" text,\n \"founded\" real,\n \"venue\" text,\n \"league_championships\" real,\n \"championship_years\" text\n);\n\nQuestion: How much Founded has a League championships larger than 0, and a Club of penn state nittany lions women's volleyball?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"founded\") FROM \"sports_teams\" WHERE \"league_championships\">0 AND \"club\"='penn state nittany lions women''s volleyball';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sports_teams\" (\n \"sport\" text,\n \"league\" text,\n \"club\" text,\n \"founded\" real,\n \"venue\" text,\n \"league_championships\" real,\n \"championship_years\" text\n);\n\nQuestion: Which Venue has a League of ncaa, and a Founded smaller than 1965, and a Club of penn state nittany lions men's ice hockey?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"sports_teams\" WHERE \"league\"='ncaa' AND \"founded\"<1965 AND \"club\"='penn state nittany lions men''s ice hockey';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"census_of_2010\" (\n \"province\" text,\n \"total\" real,\n \"hindu\" real,\n \"pct_hindu_2010\" text,\n \"pct_hindu_2000\" text\n);\n\nQuestion: What is the total when the Hindu is greater than 1,076, in the Jawa Barat province?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"total\") FROM \"census_of_2010\" WHERE \"hindu\">'1,076' AND \"province\"='jawa barat';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"census_of_2010\" (\n \"province\" text,\n \"total\" real,\n \"hindu\" real,\n \"pct_hindu_2010\" text,\n \"pct_hindu_2000\" text\n);\n\nQuestion: What % Hindu 2010 has a 0.01% % Hindu 2000, and a greater than 136 Hindu?"
},
{
"role": "assistant",
"content": "SELECT \"pct_hindu_2010\" FROM \"census_of_2010\" WHERE \"pct_hindu_2000\"='0.01%' AND \"hindu\">136;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final\" (\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 \"final\" WHERE \"country\"='netherlands';"
}
] |
[
{
"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: In which state did Marquis Li rule?"
},
{
"role": "assistant",
"content": "SELECT \"state\" FROM \"vassal_states\" WHERE \"name\"='li' AND \"title\"='marquis';"
}
] |
[
{
"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 was the Royal House for the state of Song?"
},
{
"role": "assistant",
"content": "SELECT \"royal_house\" FROM \"vassal_states\" WHERE \"state\"='song';"
}
] |
[
{
"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 of state was Chu?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"vassal_states\" WHERE \"state\"='chu';"
}
] |
[
{
"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 of state was Lu, when Yi was the ruler from the royal house of Ji?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"vassal_states\" WHERE \"royal_house\"='ji' AND \"name\"='yi' AND \"state\"='lu';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is Score, when Competition is \"Euro 2004 Qualifier\"?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"international_goals\" WHERE \"competition\"='euro 2004 qualifier';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is Competition, when Date is \"28 March 2001\"?"
},
{
"role": "assistant",
"content": "SELECT \"competition\" FROM \"international_goals\" WHERE \"date\"='28 march 2001';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"kickboxing_record\" (\n \"date\" text,\n \"result\" text,\n \"opponent\" text,\n \"event\" text,\n \"location\" text,\n \"method\" text,\n \"record\" text\n);\n\nQuestion: who is the opponent on 2004-06-26 with the result of loss?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"kickboxing_record\" WHERE \"date\"='2004-06-26' AND \"result\"='loss';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"kickboxing_record\" (\n \"date\" text,\n \"result\" text,\n \"opponent\" text,\n \"event\" text,\n \"location\" text,\n \"method\" text,\n \"record\" text\n);\n\nQuestion: what is the location when the opponent is aleksandr pitchkounov?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"kickboxing_record\" WHERE \"opponent\"='aleksandr pitchkounov';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"kickboxing_record\" (\n \"date\" text,\n \"result\" text,\n \"opponent\" text,\n \"event\" text,\n \"location\" text,\n \"method\" text,\n \"record\" text\n);\n\nQuestion: what is the event when the location is saitama, japan?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"kickboxing_record\" WHERE \"location\"='saitama, japan';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"kickboxing_record\" (\n \"date\" text,\n \"result\" text,\n \"opponent\" text,\n \"event\" text,\n \"location\" text,\n \"method\" text,\n \"record\" text\n);\n\nQuestion: what is the location when the event is k-1 world grand prix 2004 in saitama?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"kickboxing_record\" WHERE \"event\"='k-1 world grand prix 2004 in saitama';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"kickboxing_record\" (\n \"date\" text,\n \"result\" text,\n \"opponent\" text,\n \"event\" text,\n \"location\" text,\n \"method\" text,\n \"record\" text\n);\n\nQuestion: what is the record when the result is win on 2004-06-26?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"kickboxing_record\" WHERE \"result\"='win' AND \"date\"='2004-06-26';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"kickboxing_record\" (\n \"date\" text,\n \"result\" text,\n \"opponent\" text,\n \"event\" text,\n \"location\" text,\n \"method\" text,\n \"record\" text\n);\n\nQuestion: what is the event when the result is loss and the record is 7-5?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"kickboxing_record\" WHERE \"result\"='loss' AND \"record\"='7-5';"
}
] |
[
{
"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 date of the game with a result of W 13-10?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"result\"='w 13-10';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" real,\n \"finish\" text\n);\n\nQuestion: What is the total number of Total(s), when Finish is \"T21\", and when To Par is greater than 23?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"total\") FROM \"made_the_cut\" WHERE \"finish\"='t21' AND \"to_par\">23;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" real,\n \"finish\" text\n);\n\nQuestion: What is Finish, when Total is \"306\"?"
},
{
"role": "assistant",
"content": "SELECT \"finish\" FROM \"made_the_cut\" WHERE \"total\"=306;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" real,\n \"finish\" text\n);\n\nQuestion: What is the total number of To Par, when Player is \"Julius Boros\", and when Total is greater than 295?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"to_par\") FROM \"made_the_cut\" WHERE \"player\"='julius boros' AND \"total\">295;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" real,\n \"finish\" text\n);\n\nQuestion: What is the total number of To Par, when Total is \"295\"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"to_par\") FROM \"made_the_cut\" WHERE \"total\"=295;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" real,\n \"finish\" text\n);\n\nQuestion: What is the lowest Total, when Year(s) Won is \"1948 , 1950 , 1951 , 1953\"?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"total\") FROM \"made_the_cut\" WHERE \"year_s_won\"='1948 , 1950 , 1951 , 1953';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television\" (\n \"year\" real,\n \"title\" text,\n \"role\" text,\n \"network\" text,\n \"notes\" text\n);\n\nQuestion: What is the sum of Year, when Role is \"himself\", and when Notes is \"celebrity guest alongside yg family\"?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"year\") FROM \"television\" WHERE \"role\"='himself' AND \"notes\"='celebrity guest alongside yg family';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television\" (\n \"year\" real,\n \"title\" text,\n \"role\" text,\n \"network\" text,\n \"notes\" text\n);\n\nQuestion: What is the highest Year, when Notes is \"Celebrity Guest Alongside YG Family\"?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"year\") FROM \"television\" WHERE \"notes\"='celebrity guest alongside yg family';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television\" (\n \"year\" real,\n \"title\" text,\n \"role\" text,\n \"network\" text,\n \"notes\" text\n);\n\nQuestion: What is the Year, when Role is \"himself\", and when Title is \"Epik High's Love And Delusion\"?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"television\" WHERE \"role\"='himself' AND \"title\"='epik high''s love and delusion';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television\" (\n \"year\" real,\n \"title\" text,\n \"role\" text,\n \"network\" text,\n \"notes\" text\n);\n\nQuestion: What is the sum of Year, when Title is \"Mnet Director's Cut\"?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"year\") FROM \"television\" WHERE \"title\"='mnet director''s cut';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television\" (\n \"year\" real,\n \"title\" text,\n \"role\" text,\n \"network\" text,\n \"notes\" text\n);\n\nQuestion: What is the Network, when Title is \"Epik High's Love And Delusion\"?"
},
{
"role": "assistant",
"content": "SELECT \"network\" FROM \"television\" WHERE \"title\"='epik high''s love and delusion';"
}
] |
[
{
"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\" text\n);\n\nQuestion: How many were in attendance during week 12?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" 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 \"result\" text,\n \"attendance\" text\n);\n\nQuestion: On what date was the Result l 38-14?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"result\"='l 38-14';"
}
] |
[
{
"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\" text\n);\n\nQuestion: On what date was the week less than 3 with a result of w 24-13?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"week\"<3 AND \"result\"='w 24-13';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"water_parks_in_terms_of_attendance\" (\n \"rank\" real,\n \"water_park\" text,\n \"location\" text,\n \"2011\" real,\n \"2012\" real\n);\n\nQuestion: what is the water park with the rank 20?"
},
{
"role": "assistant",
"content": "SELECT \"water_park\" FROM \"water_parks_in_terms_of_attendance\" WHERE \"rank\"=20;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"water_parks_in_terms_of_attendance\" (\n \"rank\" real,\n \"water_park\" text,\n \"location\" text,\n \"2011\" real,\n \"2012\" real\n);\n\nQuestion: what is 2011 when the rank is less than 8 and the water park is ocean world?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"2011\") FROM \"water_parks_in_terms_of_attendance\" WHERE \"rank\"<8 AND \"water_park\"='ocean world';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"water_parks_in_terms_of_attendance\" (\n \"rank\" real,\n \"water_park\" text,\n \"location\" text,\n \"2011\" real,\n \"2012\" real\n);\n\nQuestion: what is the lowest 2011 for sunway lagoon water park and 2012 is less than 1,200,000?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"2011\") FROM \"water_parks_in_terms_of_attendance\" WHERE \"water_park\"='sunway lagoon' AND \"2012\"<'1,200,000';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"area\" text,\n \"population\" text,\n \"pct_muslim\" text,\n \"pct_hindu\" text,\n \"pct_buddhist\" text,\n \"pct_other\" text\n);\n\nQuestion: What percentage of Azad Kashmir is Hindu?"
},
{
"role": "assistant",
"content": "SELECT \"pct_hindu\" FROM \"demographics\" WHERE \"area\"='azad kashmir';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"area\" text,\n \"population\" text,\n \"pct_muslim\" text,\n \"pct_hindu\" text,\n \"pct_buddhist\" text,\n \"pct_other\" text\n);\n\nQuestion: What area shows % Hindu of statistics from the bbc in depth report.?"
},
{
"role": "assistant",
"content": "SELECT \"area\" FROM \"demographics\" WHERE \"pct_hindu\"='statistics from the bbc in depth report.';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"area\" text,\n \"population\" text,\n \"pct_muslim\" text,\n \"pct_hindu\" text,\n \"pct_buddhist\" text,\n \"pct_other\" text\n);\n\nQuestion: What is the population when the % Muslim shows 30%?"
},
{
"role": "assistant",
"content": "SELECT \"population\" FROM \"demographics\" WHERE \"pct_muslim\"='30%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"area\" text,\n \"population\" text,\n \"pct_muslim\" text,\n \"pct_hindu\" text,\n \"pct_buddhist\" text,\n \"pct_other\" text\n);\n\nQuestion: What is the percentage of Buddhist when the Population is ~2.6 million (2.6million)?"
},
{
"role": "assistant",
"content": "SELECT \"pct_buddhist\" FROM \"demographics\" WHERE \"population\"='~2.6 million (2.6million)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"area\" text,\n \"population\" text,\n \"pct_muslim\" text,\n \"pct_hindu\" text,\n \"pct_buddhist\" text,\n \"pct_other\" text\n);\n\nQuestion: What area has a % Other of \u2013, and a % Muslim of 95%?"
},
{
"role": "assistant",
"content": "SELECT \"area\" FROM \"demographics\" WHERE \"pct_other\"='\u2013' AND \"pct_muslim\"='95%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"area\" text,\n \"population\" text,\n \"pct_muslim\" text,\n \"pct_hindu\" text,\n \"pct_buddhist\" text,\n \"pct_other\" text\n);\n\nQuestion: What area has a percentage of other of 3%?"
},
{
"role": "assistant",
"content": "SELECT \"area\" FROM \"demographics\" WHERE \"pct_other\"='3%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nba_finals\" (\n \"game\" text,\n \"date\" text,\n \"home_team\" text,\n \"result\" text,\n \"road_team\" text\n);\n\nQuestion: What Game had a Result of 125-123 (OT)?"
},
{
"role": "assistant",
"content": "SELECT \"game\" FROM \"nba_finals\" WHERE \"result\"='125-123 (ot)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nba_finals\" (\n \"game\" text,\n \"date\" text,\n \"home_team\" text,\n \"result\" text,\n \"road_team\" text\n);\n\nQuestion: What is the Date of Game 5 with Road Team St. Louis?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"nba_finals\" WHERE \"road_team\"='st. louis' AND \"game\"='game 5';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nba_finals\" (\n \"game\" text,\n \"date\" text,\n \"home_team\" text,\n \"result\" text,\n \"road_team\" text\n);\n\nQuestion: What is the Road Team of Game 3?"
},
{
"role": "assistant",
"content": "SELECT \"road_team\" FROM \"nba_finals\" WHERE \"game\"='game 3';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nba_finals\" (\n \"game\" text,\n \"date\" text,\n \"home_team\" text,\n \"result\" text,\n \"road_team\" text\n);\n\nQuestion: What is the Game on April 13 with Road Team St. Louis?"
},
{
"role": "assistant",
"content": "SELECT \"game\" FROM \"nba_finals\" WHERE \"road_team\"='st. louis' AND \"date\"='april 13';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nba_finals\" (\n \"game\" text,\n \"date\" text,\n \"home_team\" text,\n \"result\" text,\n \"road_team\" text\n);\n\nQuestion: What is the Home Team in the game with a Result of 124-109?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"nba_finals\" WHERE \"result\"='124-109';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.