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