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 \"champions\" (\n \"season\" text,\n \"team\" text,\n \"racing_team\" text,\n \"chassis\" text,\n \"engine\" text,\n \"tyres\" text,\n \"drivers\" text,\n \"wins\" text,\n \"sprints_wins\" text,\n \"main_wins\" text,\n \"poles\" text,\n \"fastest_laps\" text,\n \"points\" text\n);\n\nQuestion: How many poles does status grand prix have?"
},
{
"role": "assistant",
"content": "SELECT \"poles\" FROM \"champions\" WHERE \"racing_team\"='status grand prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Question does not make sense since there was no record of 88-74"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"record\"='88-74';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"individual\" (\n \"date\" text,\n \"country\" text,\n \"name\" text,\n \"award\" text,\n \"notes\" text\n);\n\nQuestion: What is the award type for all Lowe awards?"
},
{
"role": "assistant",
"content": "SELECT \"award\" FROM \"individual\" WHERE \"name\"='lowe';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"complete_world_championship_formula_one_\" (\n \"year\" real,\n \"chassis\" text,\n \"engine_s\" text,\n \"tyres\" text,\n \"points\" text\n);\n\nQuestion: Which engine(s) has a year of 1966, and a point of 42."
},
{
"role": "assistant",
"content": "SELECT \"engine_s\" FROM \"complete_world_championship_formula_one_\" WHERE \"year\"=1966 AND \"points\"='42';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pre_season\" (\n \"match\" real,\n \"date\" text,\n \"competition_or_tour\" text,\n \"ground\" text,\n \"opponent\" text,\n \"score1\" text\n);\n\nQuestion: What was the score against hapoel tel aviv?"
},
{
"role": "assistant",
"content": "SELECT \"score1\" FROM \"pre_season\" WHERE \"opponent\"='hapoel tel aviv';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pre_season\" (\n \"match\" real,\n \"date\" text,\n \"competition_or_tour\" text,\n \"ground\" text,\n \"opponent\" text,\n \"score1\" text\n);\n\nQuestion: What day did they play cambridge united?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"pre_season\" WHERE \"opponent\"='cambridge united';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pre_season\" (\n \"match\" real,\n \"date\" text,\n \"competition_or_tour\" text,\n \"ground\" text,\n \"opponent\" text,\n \"score1\" text\n);\n\nQuestion: Where was match 8 played?"
},
{
"role": "assistant",
"content": "SELECT \"ground\" FROM \"pre_season\" WHERE \"match\"=8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"coaches\" (\n \"name_b\" text,\n \"term_c\" text,\n \"games\" real,\n \"winpct\" real,\n \"p_winpct\" text\n);\n\nQuestion: What is the name of the person with a PWin% of .696?"
},
{
"role": "assistant",
"content": "SELECT \"name_b\" FROM \"coaches\" WHERE \"p_winpct\"='.696';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"coaches\" (\n \"name_b\" text,\n \"term_c\" text,\n \"games\" real,\n \"winpct\" real,\n \"p_winpct\" text\n);\n\nQuestion: What is the sum of the game with a PWin% of \u2014, Term [c] of 1987\u20131988, and Win% less than 0.506?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"games\") FROM \"coaches\" WHERE \"p_winpct\"='\u2014' AND \"term_c\"='1987\u20131988' AND \"winpct\"<0.506;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"coaches\" (\n \"name_b\" text,\n \"term_c\" text,\n \"games\" real,\n \"winpct\" real,\n \"p_winpct\" text\n);\n\nQuestion: What is the win% for the game 80 and a PWin% of \u2014, and a Term [c ] of 1987\u20131988?"
},
{
"role": "assistant",
"content": "SELECT \"winpct\" FROM \"coaches\" WHERE \"games\"=80 AND \"p_winpct\"='\u2014' AND \"term_c\"='1987\u20131988';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"coaches\" (\n \"name_b\" text,\n \"term_c\" text,\n \"games\" real,\n \"winpct\" real,\n \"p_winpct\" text\n);\n\nQuestion: What is the of games when for the term [c] of 1969 \u2013 1973?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"games\") FROM \"coaches\" WHERE \"term_c\"='1969 \u2013 1973';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"under_u_s_jurisdiction_territorial\" (\n \"name\" text,\n \"date_of_execution\" text,\n \"crime\" text,\n \"method\" text,\n \"race\" text\n);\n\nQuestion: What was the method of execution on September 24, 1830?"
},
{
"role": "assistant",
"content": "SELECT \"method\" FROM \"under_u_s_jurisdiction_territorial\" WHERE \"date_of_execution\"='september 24, 1830';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"under_u_s_jurisdiction_territorial\" (\n \"name\" text,\n \"date_of_execution\" text,\n \"crime\" text,\n \"method\" text,\n \"race\" text\n);\n\nQuestion: How was the native american, Wau-Bau-Ne-Me-Mee, executed?"
},
{
"role": "assistant",
"content": "SELECT \"method\" FROM \"under_u_s_jurisdiction_territorial\" WHERE \"race\"='native american' AND \"name\"='wau-bau-ne-me-mee';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"under_u_s_jurisdiction_territorial\" (\n \"name\" text,\n \"date_of_execution\" text,\n \"crime\" text,\n \"method\" text,\n \"race\" text\n);\n\nQuestion: What was the race of the person executed on December 27, 1827?"
},
{
"role": "assistant",
"content": "SELECT \"race\" FROM \"under_u_s_jurisdiction_territorial\" WHERE \"date_of_execution\"='december 27, 1827';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"under_u_s_jurisdiction_territorial\" (\n \"name\" text,\n \"date_of_execution\" text,\n \"crime\" text,\n \"method\" text,\n \"race\" text\n);\n\nQuestion: In what way was Kewaubis executed on December 27, 1827?"
},
{
"role": "assistant",
"content": "SELECT \"method\" FROM \"under_u_s_jurisdiction_territorial\" WHERE \"date_of_execution\"='december 27, 1827' AND \"name\"='kewaubis';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"under_u_s_jurisdiction_territorial\" (\n \"name\" text,\n \"date_of_execution\" text,\n \"crime\" text,\n \"method\" text,\n \"race\" text\n);\n\nQuestion: How was the native american executed in July 1836?"
},
{
"role": "assistant",
"content": "SELECT \"method\" FROM \"under_u_s_jurisdiction_territorial\" WHERE \"race\"='native american' AND \"date_of_execution\"='july 1836';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"head_to_head_records_against_other_count\" (\n \"games\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_differential\" text\n);\n\nQuestion: How many draws have 1 win, 1 loss, and a Goal Differential of +1?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"draws\") FROM \"head_to_head_records_against_other_count\" WHERE \"wins\"=1 AND \"losses\"=1 AND \"goal_differential\"='+1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"250_million_or_more_records\" (\n \"artist\" text,\n \"country_of_origin\" text,\n \"period_active\" text,\n \"release_year_of_first_charted_record\" real,\n \"genre\" text,\n \"claimed_sales\" text\n);\n\nQuestion: What genre is Led Zeppelin?"
},
{
"role": "assistant",
"content": "SELECT \"genre\" FROM \"250_million_or_more_records\" WHERE \"artist\"='led zeppelin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"record\" text\n);\n\nQuestion: On what date was the Loss by Flanagan (6-7)?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"loss\"='flanagan (6-7)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"record\" text\n);\n\nQuestion: During which loss was the record 48-50?"
},
{
"role": "assistant",
"content": "SELECT \"loss\" FROM \"game_log\" WHERE \"record\"='48-50';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"record\" text\n);\n\nQuestion: What was the score that made the record 47-49?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"record\"='47-49';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"record\" text\n);\n\nQuestion: Who was the Opponent on July 29?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"date\"='july 29';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"record\" text\n);\n\nQuestion: What was the record during the loss by key (7-11)?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"loss\"='key (7-11)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_preserved_rm_bs\" (\n \"lot_no\" real,\n \"diagram\" real,\n \"built\" text,\n \"builder\" text,\n \"fleet_numbers\" text\n);\n\nQuestion: What is the total diagram for builder york?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"diagram\") FROM \"list_of_preserved_rm_bs\" WHERE \"builder\"='york';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_preserved_rm_bs\" (\n \"lot_no\" real,\n \"diagram\" real,\n \"built\" text,\n \"builder\" text,\n \"fleet_numbers\" text\n);\n\nQuestion: What fleet numbers have a diagram less than 99 and built in 1960?"
},
{
"role": "assistant",
"content": "SELECT \"fleet_numbers\" FROM \"list_of_preserved_rm_bs\" WHERE \"diagram\"<99 AND \"built\"='1960';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_preserved_rm_bs\" (\n \"lot_no\" real,\n \"diagram\" real,\n \"built\" text,\n \"builder\" text,\n \"fleet_numbers\" text\n);\n\nQuestion: What diagram built in 1962 has a lot number smaller than 30702?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"diagram\") FROM \"list_of_preserved_rm_bs\" WHERE \"built\"='1962' AND \"lot_no\"<30702;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_preserved_rm_bs\" (\n \"lot_no\" real,\n \"diagram\" real,\n \"built\" text,\n \"builder\" text,\n \"fleet_numbers\" text\n);\n\nQuestion: What builder has lot number 30702?"
},
{
"role": "assistant",
"content": "SELECT \"builder\" FROM \"list_of_preserved_rm_bs\" WHERE \"lot_no\"=30702;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"works\" (\n \"year\" real,\n \"name\" text,\n \"genre\" text,\n \"status\" text,\n \"post\" text\n);\n\nQuestion: Which Genre has a Year before 2013, and a Name of kikumana?"
},
{
"role": "assistant",
"content": "SELECT \"genre\" FROM \"works\" WHERE \"year\"<2013 AND \"name\"='kikumana';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"works\" (\n \"year\" real,\n \"name\" text,\n \"genre\" text,\n \"status\" text,\n \"post\" text\n);\n\nQuestion: In what year has a Post of designer?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"year\") FROM \"works\" WHERE \"post\"='designer';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text\n);\n\nQuestion: Who is listed as the Visitor that has a Home of Boston Bruins and a Date of November 15?"
},
{
"role": "assistant",
"content": "SELECT \"visitor\" FROM \"game_log\" WHERE \"home\"='boston bruins' AND \"date\"='november 15';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text\n);\n\nQuestion: Which Visitor is listed as having a Date of December 17?"
},
{
"role": "assistant",
"content": "SELECT \"visitor\" FROM \"game_log\" WHERE \"date\"='december 17';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text\n);\n\nQuestion: What's the Score with the Visitor of Montreal Maroons and has a Date of December 28?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"visitor\"='montreal maroons' AND \"date\"='december 28';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What's the attendance of the san diego chargers game before week 6?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"attendance\") FROM \"season_schedule\" WHERE \"week\"<6 AND \"opponent\"='san diego chargers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"tournament\" text,\n \"wins\" real,\n \"top_25\" real,\n \"events\" real,\n \"cuts_made\" real\n);\n\nQuestion: How many wins have a Top-25 of 1, Less than 2 cuts, and fewer than 5 events?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"wins\") FROM \"summary\" WHERE \"top_25\"=1 AND \"cuts_made\"<2 AND \"events\"<5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"tournament\" text,\n \"wins\" real,\n \"top_25\" real,\n \"events\" real,\n \"cuts_made\" real\n);\n\nQuestion: How many events have a Top-25 of 1 and made less than 1 cut?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"events\") FROM \"summary\" WHERE \"top_25\"=1 AND \"cuts_made\"<1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"tournament\" text,\n \"wins\" real,\n \"top_25\" real,\n \"events\" real,\n \"cuts_made\" real\n);\n\nQuestion: During the PGA Championship, what's the lowest amount of events with wins greater than 0?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"events\") FROM \"summary\" WHERE \"tournament\"='pga championship' AND \"wins\">0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"tournament\" text,\n \"wins\" real,\n \"top_25\" real,\n \"events\" real,\n \"cuts_made\" real\n);\n\nQuestion: What's the lowest number of cuts made while the win was less than 0?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"cuts_made\") FROM \"summary\" WHERE \"wins\"<0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"reactor_data\" (\n \"unit\" text,\n \"reactortype\" text,\n \"net_capacity\" text,\n \"gross_capacity\" text,\n \"construction_started\" text,\n \"electricity_grid\" text,\n \"commercial_operation\" text,\n \"shutdown\" text\n);\n\nQuestion: Which Reactortype has a gross capacity of 417 mw and an Electricity Grid of 27.12.1971?"
},
{
"role": "assistant",
"content": "SELECT \"reactortype\" FROM \"reactor_data\" WHERE \"gross_capacity\"='417 mw' AND \"electricity_grid\"='27.12.1971';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"reactor_data\" (\n \"unit\" text,\n \"reactortype\" text,\n \"net_capacity\" text,\n \"gross_capacity\" text,\n \"construction_started\" text,\n \"electricity_grid\" text,\n \"commercial_operation\" text,\n \"shutdown\" text\n);\n\nQuestion: Which Unit's Construction started on 01.07.1967?"
},
{
"role": "assistant",
"content": "SELECT \"unit\" FROM \"reactor_data\" WHERE \"construction_started\"='01.07.1967';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"reactor_data\" (\n \"unit\" text,\n \"reactortype\" text,\n \"net_capacity\" text,\n \"gross_capacity\" text,\n \"construction_started\" text,\n \"electricity_grid\" text,\n \"commercial_operation\" text,\n \"shutdown\" text\n);\n\nQuestion: Which Commercial Operation has both a Gross Capacity of 417 mw and an Electricity Grid 27.12.1971?"
},
{
"role": "assistant",
"content": "SELECT \"commercial_operation\" FROM \"reactor_data\" WHERE \"gross_capacity\"='417 mw' AND \"electricity_grid\"='27.12.1971';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"reactor_data\" (\n \"unit\" text,\n \"reactortype\" text,\n \"net_capacity\" text,\n \"gross_capacity\" text,\n \"construction_started\" text,\n \"electricity_grid\" text,\n \"commercial_operation\" text,\n \"shutdown\" text\n);\n\nQuestion: When did the Electricity Grid 28.12.1972 officially shutdown?"
},
{
"role": "assistant",
"content": "SELECT \"shutdown\" FROM \"reactor_data\" WHERE \"electricity_grid\"='28.12.1972';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"reactor_data\" (\n \"unit\" text,\n \"reactortype\" text,\n \"net_capacity\" text,\n \"gross_capacity\" text,\n \"construction_started\" text,\n \"electricity_grid\" text,\n \"commercial_operation\" text,\n \"shutdown\" text\n);\n\nQuestion: Which Electricity Grid started its Commercial Operation of 24.03.1973?"
},
{
"role": "assistant",
"content": "SELECT \"electricity_grid\" FROM \"reactor_data\" WHERE \"commercial_operation\"='24.03.1973';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"squad_information\" (\n \"nat\" text,\n \"name\" text,\n \"since\" real,\n \"app_gs_sub\" text,\n \"goals\" real,\n \"transfer_fee\" text\n);\n\nQuestion: Tell what has the App(GS/Sub) of 14 (8/6)"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"squad_information\" WHERE \"app_gs_sub\"='14 (8/6)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"squad_information\" (\n \"nat\" text,\n \"name\" text,\n \"since\" real,\n \"app_gs_sub\" text,\n \"goals\" real,\n \"transfer_fee\" text\n);\n\nQuestion: Name the goals with since less than 2007 and App(GS/Sub) of 97 (69/28)"
},
{
"role": "assistant",
"content": "SELECT \"goals\" FROM \"squad_information\" WHERE \"since\"<2007 AND \"app_gs_sub\"='97 (69/28)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"hit_n_run_shows\" (\n \"date\" text,\n \"city\" text,\n \"country\" text,\n \"venue\" text,\n \"attendance\" text\n);\n\nQuestion: When is Cadott Rock Fest taken place?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"hit_n_run_shows\" WHERE \"venue\"='cadott rock fest';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"hit_n_run_shows\" (\n \"date\" text,\n \"city\" text,\n \"country\" text,\n \"venue\" text,\n \"attendance\" text\n);\n\nQuestion: Which City has mandalay bay resort"
},
{
"role": "assistant",
"content": "SELECT \"city\" FROM \"hit_n_run_shows\" WHERE \"venue\"='mandalay bay resort';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"hit_n_run_shows\" (\n \"date\" text,\n \"city\" text,\n \"country\" text,\n \"venue\" text,\n \"attendance\" text\n);\n\nQuestion: Which City has a Date on october 26, 2007"
},
{
"role": "assistant",
"content": "SELECT \"city\" FROM \"hit_n_run_shows\" WHERE \"date\"='october 26, 2007';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"hit_n_run_shows\" (\n \"date\" text,\n \"city\" text,\n \"country\" text,\n \"venue\" text,\n \"attendance\" text\n);\n\nQuestion: Which Attendance has Mandalay Bay Resort"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"hit_n_run_shows\" WHERE \"venue\"='mandalay bay resort';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"hit_n_run_shows\" (\n \"date\" text,\n \"city\" text,\n \"country\" text,\n \"venue\" text,\n \"attendance\" text\n);\n\nQuestion: When is Country of united states, and a Venue of mandalay bay resort in?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"hit_n_run_shows\" WHERE \"country\"='united states' AND \"venue\"='mandalay bay resort';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"hit_n_run_shows\" (\n \"date\" text,\n \"city\" text,\n \"country\" text,\n \"venue\" text,\n \"attendance\" text\n);\n\nQuestion: When has a City of san jacinto, california?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"hit_n_run_shows\" WHERE \"city\"='san jacinto, california';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"complete_world_championship_grand_prix_r\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: Which Chassis has more than 0 points, an Entrant of Scuderia Ferrari, and was later than 1952?"
},
{
"role": "assistant",
"content": "SELECT \"chassis\" FROM \"complete_world_championship_grand_prix_r\" WHERE \"points\">0 AND \"entrant\"='scuderia ferrari' AND \"year\">1952;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"complete_world_championship_grand_prix_r\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: Which Entrant has a vanwall straight-4 engine?"
},
{
"role": "assistant",
"content": "SELECT \"entrant\" FROM \"complete_world_championship_grand_prix_r\" WHERE \"engine\"='vanwall straight-4';"
}
]
|
[
{
"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 \"catalogue\" text\n);\n\nQuestion: Which region has a date of 1970?"
},
{
"role": "assistant",
"content": "SELECT \"region\" FROM \"release_history\" WHERE \"date\"='1970';"
}
]
|
[
{
"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 \"catalogue\" text\n);\n\nQuestion: Which label has a date of 1987?"
},
{
"role": "assistant",
"content": "SELECT \"label\" FROM \"release_history\" WHERE \"date\"='1987';"
}
]
|
[
{
"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 \"catalogue\" text\n);\n\nQuestion: Which catalogue has a formate of \"CD Remastered with 3 bonus tracks\"?"
},
{
"role": "assistant",
"content": "SELECT \"catalogue\" FROM \"release_history\" WHERE \"format\"='cd remastered with 3 bonus tracks';"
}
]
|
[
{
"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 \"catalogue\" text\n);\n\nQuestion: Which catalogue has a date of 1987?"
},
{
"role": "assistant",
"content": "SELECT \"catalogue\" FROM \"release_history\" WHERE \"date\"='1987';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances\" (\n \"season\" real,\n \"host\" text,\n \"winners\" text,\n \"score\" text,\n \"runners_up\" text,\n \"third_place\" text\n);\n\nQuestion: What is the latest season where Al Ahly is the runners-up?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"season\") FROM \"performances\" WHERE \"runners_up\"='al ahly';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances\" (\n \"season\" real,\n \"host\" text,\n \"winners\" text,\n \"score\" text,\n \"runners_up\" text,\n \"third_place\" text\n);\n\nQuestion: What is the season where Vasco da gama is the score?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"performances\" WHERE \"score\"='vasco da gama';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances\" (\n \"season\" real,\n \"host\" text,\n \"winners\" text,\n \"score\" text,\n \"runners_up\" text,\n \"third_place\" text\n);\n\nQuestion: Who is the winner in 2010?"
},
{
"role": "assistant",
"content": "SELECT \"winners\" FROM \"performances\" WHERE \"season\"=2010;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances\" (\n \"season\" real,\n \"host\" text,\n \"winners\" text,\n \"score\" text,\n \"runners_up\" text,\n \"third_place\" text\n);\n\nQuestion: Who is the winner in 2011?"
},
{
"role": "assistant",
"content": "SELECT \"winners\" FROM \"performances\" WHERE \"season\"=2011;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances\" (\n \"season\" real,\n \"host\" text,\n \"winners\" text,\n \"score\" text,\n \"runners_up\" text,\n \"third_place\" text\n);\n\nQuestion: What was the third place of the performance in 2006 with the host Japan?"
},
{
"role": "assistant",
"content": "SELECT \"third_place\" FROM \"performances\" WHERE \"host\"='japan' AND \"season\"<2006;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"uefa_cup_winners_cup\" (\n \"season\" text,\n \"competition\" text,\n \"round\" text,\n \"club\" text,\n \"home\" text,\n \"away\" text,\n \"aggregate\" text\n);\n\nQuestion: Which round did Dundee United end in?"
},
{
"role": "assistant",
"content": "SELECT \"round\" FROM \"uefa_cup_winners_cup\" WHERE \"club\"='dundee united';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"olympic_games\" (\n \"event\" text,\n \"individual\" text,\n \"sprint\" text,\n \"pursuit\" text,\n \"mass_start\" text,\n \"relay\" text\n);\n\nQuestion: Name the event with pursuit of 18th and sprint of 20th"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"olympic_games\" WHERE \"pursuit\"='18th' AND \"sprint\"='20th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"olympic_games\" (\n \"event\" text,\n \"individual\" text,\n \"sprint\" text,\n \"pursuit\" text,\n \"mass_start\" text,\n \"relay\" text\n);\n\nQuestion: Name the pursuit for 1994 lillehammer"
},
{
"role": "assistant",
"content": "SELECT \"pursuit\" FROM \"olympic_games\" WHERE \"event\"='1994 lillehammer';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"olympic_games\" (\n \"event\" text,\n \"individual\" text,\n \"sprint\" text,\n \"pursuit\" text,\n \"mass_start\" text,\n \"relay\" text\n);\n\nQuestion: Name the sprint with mass start of 2nd"
},
{
"role": "assistant",
"content": "SELECT \"sprint\" FROM \"olympic_games\" WHERE \"mass_start\"='2nd';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1990s\" (\n \"year\" real,\n \"english_title\" text,\n \"original_title\" text,\n \"country\" text,\n \"director_s\" text\n);\n\nQuestion: What country had a film in 1993?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"1990s\" WHERE \"year\"=1993;"
}
]
|
[
{
"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 Extreme Challenge 63 with a time of 2:00 held?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"mixed_martial_arts_record\" WHERE \"event\"='extreme challenge 63' AND \"time\"='2:00';"
}
]
|
[
{
"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: How many total rounds were there at UFC 114?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"event\"='ufc 114';"
}
]
|
[
{
"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: In the round that lasted 0:20, what was the Res?"
},
{
"role": "assistant",
"content": "SELECT \"res\" FROM \"mixed_martial_arts_record\" WHERE \"time\"='0:20';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"european_poker_tour\" (\n \"date\" text,\n \"city\" text,\n \"event\" text,\n \"winner\" text,\n \"prize\" text\n);\n\nQuestion: In what City was the Ept Baden Classic?"
},
{
"role": "assistant",
"content": "SELECT \"city\" FROM \"european_poker_tour\" WHERE \"event\"='ept baden classic';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"european_poker_tour\" (\n \"date\" text,\n \"city\" text,\n \"event\" text,\n \"winner\" text,\n \"prize\" text\n);\n\nQuestion: What Event has a Prize of \u20ac869,000?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"european_poker_tour\" WHERE \"prize\"='\u20ac869,000';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"european_poker_tour\" (\n \"date\" text,\n \"city\" text,\n \"event\" text,\n \"winner\" text,\n \"prize\" text\n);\n\nQuestion: What Winner had a Prize of z\u01422,153,999?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"european_poker_tour\" WHERE \"prize\"='z\u01422,153,999';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"queenstown_lakes_district\" (\n \"name\" text,\n \"years\" text,\n \"gender\" text,\n \"area\" text,\n \"authority\" text,\n \"decile\" real,\n \"roll\" real\n);\n\nQuestion: How many decile has a roll less than 20?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"decile\") FROM \"queenstown_lakes_district\" WHERE \"roll\"<20;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"queenstown_lakes_district\" (\n \"name\" text,\n \"years\" text,\n \"gender\" text,\n \"area\" text,\n \"authority\" text,\n \"decile\" real,\n \"roll\" real\n);\n\nQuestion: Which gender had a roll of 627?"
},
{
"role": "assistant",
"content": "SELECT \"gender\" FROM \"queenstown_lakes_district\" WHERE \"roll\"=627;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"queenstown_lakes_district\" (\n \"name\" text,\n \"years\" text,\n \"gender\" text,\n \"area\" text,\n \"authority\" text,\n \"decile\" real,\n \"roll\" real\n);\n\nQuestion: Glenorchy school has a decile less than 10 and is in what area?"
},
{
"role": "assistant",
"content": "SELECT \"area\" FROM \"queenstown_lakes_district\" WHERE \"decile\"<10 AND \"name\"='glenorchy school';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"queenstown_lakes_district\" (\n \"name\" text,\n \"years\" text,\n \"gender\" text,\n \"area\" text,\n \"authority\" text,\n \"decile\" real,\n \"roll\" real\n);\n\nQuestion: Makarora primary school has a roll less than 141 and what gender?"
},
{
"role": "assistant",
"content": "SELECT \"gender\" FROM \"queenstown_lakes_district\" WHERE \"roll\"<141 AND \"name\"='makarora primary school';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"uefa_champions_league\" (\n \"season\" text,\n \"competition\" text,\n \"round\" text,\n \"club\" text,\n \"home\" text,\n \"away\" text,\n \"aggregate\" text\n);\n\nQuestion: In what season did the Sporting CP Club have a 1. round?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"uefa_champions_league\" WHERE \"round\"='1. round' AND \"club\"='sporting cp';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"uefa_champions_league\" (\n \"season\" text,\n \"competition\" text,\n \"round\" text,\n \"club\" text,\n \"home\" text,\n \"away\" text,\n \"aggregate\" text\n);\n\nQuestion: The Club of Ekranas was an away with a score of what?"
},
{
"role": "assistant",
"content": "SELECT \"away\" FROM \"uefa_champions_league\" WHERE \"club\"='ekranas';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What is Rhiannon Leier's lane?"
},
{
"role": "assistant",
"content": "SELECT \"lane\" FROM \"semifinal_1\" WHERE \"name\"='rhiannon leier';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"class\" (\n \"name\" text,\n \"pennant\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"commissioned\" text\n);\n\nQuestion: What pennant does Narbada have?"
},
{
"role": "assistant",
"content": "SELECT \"pennant\" FROM \"class\" WHERE \"name\"='narbada';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"class\" (\n \"name\" text,\n \"pennant\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"commissioned\" text\n);\n\nQuestion: What date was the U21 pennant laid down?"
},
{
"role": "assistant",
"content": "SELECT \"laid_down\" FROM \"class\" WHERE \"pennant\"='u21';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indianapolis_colts_draft_history\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What position went lower than 106 from the College of Virginia?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"indianapolis_colts_draft_history\" WHERE \"overall\"<106 AND \"college\"='virginia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indianapolis_colts_draft_history\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the lowest round a fullback went in?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"round\") FROM \"indianapolis_colts_draft_history\" WHERE \"position\"='fullback';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_50_most_topographically_isolated_mou\" (\n \"rank\" real,\n \"mountain_peak\" text,\n \"province\" text,\n \"mountain_range\" text,\n \"location\" text\n);\n\nQuestion: Name the province with rank more than 49"
},
{
"role": "assistant",
"content": "SELECT \"province\" FROM \"the_50_most_topographically_isolated_mou\" WHERE \"rank\">49;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_50_most_topographically_isolated_mou\" (\n \"rank\" real,\n \"mountain_peak\" text,\n \"province\" text,\n \"mountain_range\" text,\n \"location\" text\n);\n\nQuestion: Name the mountain peak with location of 46.7000\u00b0n 60.5992\u00b0w"
},
{
"role": "assistant",
"content": "SELECT \"mountain_peak\" FROM \"the_50_most_topographically_isolated_mou\" WHERE \"location\"='46.7000\u00b0n 60.5992\u00b0w';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_50_most_topographically_isolated_mou\" (\n \"rank\" real,\n \"mountain_peak\" text,\n \"province\" text,\n \"mountain_range\" text,\n \"location\" text\n);\n\nQuestion: Name the mountain peak with rank less than 6 abd location of 81.9083\u00b0n 75.0250\u00b0w"
},
{
"role": "assistant",
"content": "SELECT \"mountain_peak\" FROM \"the_50_most_topographically_isolated_mou\" WHERE \"rank\"<6 AND \"location\"='81.9083\u00b0n 75.0250\u00b0w';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_50_most_topographically_isolated_mou\" (\n \"rank\" real,\n \"mountain_peak\" text,\n \"province\" text,\n \"mountain_range\" text,\n \"location\" text\n);\n\nQuestion: Name the mountain range for nunavut with location of 73.2294\u00b0n 78.6233\u00b0w"
},
{
"role": "assistant",
"content": "SELECT \"mountain_range\" FROM \"the_50_most_topographically_isolated_mou\" WHERE \"province\"='nunavut' AND \"location\"='73.2294\u00b0n 78.6233\u00b0w';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_50_most_topographically_isolated_mou\" (\n \"rank\" real,\n \"mountain_peak\" text,\n \"province\" text,\n \"mountain_range\" text,\n \"location\" text\n);\n\nQuestion: Name the mountain peak of 49 rank"
},
{
"role": "assistant",
"content": "SELECT \"mountain_peak\" FROM \"the_50_most_topographically_isolated_mou\" WHERE \"rank\"=49;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"county\" text,\n \"live_births_2006\" real,\n \"gfr_2006\" real,\n \"tfr_2006\" real,\n \"whites_as_pct_of_pop\" text\n);\n\nQuestion: What is the total number of live births in 2006 with 98.40% of the population as Whites and has more than 2 for the TFR?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"live_births_2006\") FROM \"references\" WHERE \"whites_as_pct_of_pop\"='98.40%' AND \"tfr_2006\">2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"county\" text,\n \"live_births_2006\" real,\n \"gfr_2006\" real,\n \"tfr_2006\" real,\n \"whites_as_pct_of_pop\" text\n);\n\nQuestion: What is the lowest total GFR that has 95.80% of the population as Whites, and a TFR total larger than 2.14, in 2006?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"gfr_2006\") FROM \"references\" WHERE \"whites_as_pct_of_pop\"='95.80%' AND \"tfr_2006\">2.14;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"county\" text,\n \"live_births_2006\" real,\n \"gfr_2006\" real,\n \"tfr_2006\" real,\n \"whites_as_pct_of_pop\" text\n);\n\nQuestion: In 2006, what is the highest number for Live births in the County of Cumbria that has a TFR larger than 1.76?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"live_births_2006\") FROM \"references\" WHERE \"county\"='cumbria' AND \"tfr_2006\">1.76;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_prix_career_statistics\" (\n \"year\" real,\n \"class\" text,\n \"team\" text,\n \"machine\" text,\n \"points\" real,\n \"rank\" text,\n \"wins\" real\n);\n\nQuestion: Question doesn't make sense since there is no team of pramac d'antin ducati"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"grand_prix_career_statistics\" WHERE \"team\"='pramac d''antin ducati';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"player\" text,\n \"height\" real,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: Which player from the Ironi Nahariya club was born in 1980?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"fiba_euro_basket_2007_squads\" WHERE \"current_club\"='ironi nahariya' AND \"year_born\"=1980;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fiba_euro_basket_2007_squads\" (\n \"player\" text,\n \"height\" real,\n \"position\" text,\n \"year_born\" real,\n \"current_club\" text\n);\n\nQuestion: Which position from the Cherkassy Monkeys' club was born after 1978?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"fiba_euro_basket_2007_squads\" WHERE \"year_born\">1978 AND \"current_club\"='cherkassy monkeys';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"north_america\" (\n \"rank\" real,\n \"circuit\" text,\n \"headquarters\" text,\n \"screens\" real,\n \"sites\" real\n);\n\nQuestion: What is the rank of the cinema when the headquarters are in toronto, ON and the screens is less than 1,438?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"rank\") FROM \"north_america\" WHERE \"headquarters\"='toronto, on' AND \"screens\"<'1,438';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"north_america\" (\n \"rank\" real,\n \"circuit\" text,\n \"headquarters\" text,\n \"screens\" real,\n \"sites\" real\n);\n\nQuestion: what is the rank of the cinema when the number of sites is more than 62 and the circuit is cineplex entertainment?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"rank\") FROM \"north_america\" WHERE \"sites\">62 AND \"circuit\"='cineplex entertainment';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"north_america\" (\n \"rank\" real,\n \"circuit\" text,\n \"headquarters\" text,\n \"screens\" real,\n \"sites\" real\n);\n\nQuestion: what is the number of sites when the number of screens is 687 and rank is more than 7?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"sites\") FROM \"north_america\" WHERE \"screens\"=687 AND \"rank\">7;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"north_america\" (\n \"rank\" real,\n \"circuit\" text,\n \"headquarters\" text,\n \"screens\" real,\n \"sites\" real\n);\n\nQuestion: what is the lowest number of sites when the headquarters are in columbus, ga and the rank is smaller than 4?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"sites\") FROM \"north_america\" WHERE \"headquarters\"='columbus, ga' AND \"rank\"<4;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"numbers_from_100_10_000_000\" (\n \"value\" text,\n \"khmer\" real,\n \"word_form\" text,\n \"ungegn\" text,\n \"ala_lc\" text,\n \"other\" text,\n \"notes\" text\n);\n\nQuestion: What is the Other transliteration for value 1 000?"
},
{
"role": "assistant",
"content": "SELECT \"other\" FROM \"numbers_from_100_10_000_000\" WHERE \"value\"='1 000';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"numbers_from_100_10_000_000\" (\n \"value\" text,\n \"khmer\" real,\n \"word_form\" text,\n \"ungegn\" text,\n \"ala_lc\" text,\n \"other\" text,\n \"notes\" text\n);\n\nQuestion: What is the word form for the ALA-LC transliteration of muay s\u2033ain?"
},
{
"role": "assistant",
"content": "SELECT \"word_form\" FROM \"numbers_from_100_10_000_000\" WHERE \"ala_lc\"='muay s\u2033ain';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.