text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"result" text,
"site" text,
"series" text
);
Question: Name the series with game of game 6
<|assistant|>
SELECT "series" FROM "nba_finals" WHERE "game"='... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "retired" (
"make_model" text,
"length" text,
"year" real,
"numbers_quantity_ordered" text,
"fuel_propulsion" text,
"year_retired" text
);
Question: For the year 1975, what is Propulsion, with... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "retired" (
"make_model" text,
"length" text,
"year" real,
"numbers_quantity_ordered" text,
"fuel_propulsion" text,
"year_retired" text
);
Question: What is the make and model that retires in ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "retired" (
"make_model" text,
"length" text,
"year" real,
"numbers_quantity_ordered" text,
"fuel_propulsion" text,
"year_retired" text
);
Question: What year was the diesel fuel propulsion, w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "geography_of_students" (
"states" text,
"fall_05" real,
"fall_06" real,
"fall_07" real,
"fall_08" real,
"fall_09" real
);
Question: What's the largest Fall 08 number when fall 09 is less than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "geography_of_students" (
"states" text,
"fall_05" real,
"fall_06" real,
"fall_07" real,
"fall_08" real,
"fall_09" real
);
Question: What is the mean Fall 09 number where fall 05 is less than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "geography_of_students" (
"states" text,
"fall_05" real,
"fall_06" real,
"fall_07" real,
"fall_08" real,
"fall_09" real
);
Question: What is the sum amount of fall 05 when fall 08 is more than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "geography_of_students" (
"states" text,
"fall_05" real,
"fall_06" real,
"fall_07" real,
"fall_08" real,
"fall_09" real
);
Question: What's the smallest fall 05 number when fall 09 is less tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personal_records" (
"distance" text,
"time" text,
"date" text,
"location" text,
"notes" text
);
Question: What is in the notes for men's speed skating?
<|assistant|>
SELECT "notes" FROM "person... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personal_records" (
"distance" text,
"time" text,
"date" text,
"location" text,
"notes" text
);
Question: What's the date when the location is Berlin?
<|assistant|>
SELECT "date" FROM "personal... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personal_records" (
"distance" text,
"time" text,
"date" text,
"location" text,
"notes" text
);
Question: What's the location for men's speed skating?
<|assistant|>
SELECT "location" FROM "pers... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personal_records" (
"distance" text,
"time" text,
"date" text,
"location" text,
"notes" text
);
Question: What's the location when the notes area is notes?
<|assistant|>
SELECT "location" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personal_records" (
"distance" text,
"time" text,
"date" text,
"location" text,
"notes" text
);
Question: What is the notes left for Berlin?
<|assistant|>
SELECT "notes" FROM "personal_records"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "deepwater" (
"name" text,
"type" text,
"entered_service" text,
"water_depth" text,
"location" text
);
Question: Which is located in Angola and entered service in 1988?
<|assistant|>
SELECT "nam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "deepwater" (
"name" text,
"type" text,
"entered_service" text,
"water_depth" text,
"location" text
);
Question: What type entered service in 2000?
<|assistant|>
SELECT "type" FROM "deepwater" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "deepwater" (
"name" text,
"type" text,
"entered_service" text,
"water_depth" text,
"location" text
);
Question: What is the water depth of Sedco 702, located in Nigeria?
<|assistant|>
SELECT "w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "deepwater" (
"name" text,
"type" text,
"entered_service" text,
"water_depth" text,
"location" text
);
Question: Which is located in Nigeria?
<|assistant|>
SELECT "name" FROM "deepwater" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "deepwater" (
"name" text,
"type" text,
"entered_service" text,
"water_depth" text,
"location" text
);
Question: Which type entered service in 1976/1997 and is located in Brazil?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "deepwater" (
"name" text,
"type" text,
"entered_service" text,
"water_depth" text,
"location" text
);
Question: Where is Transocean Richardson, a semi entered into service in 1988?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "college_career" (
"rank" real,
"name" text,
"attempts" real,
"net_yds" real,
"yds_att" real,
"year" real
);
Question: What is the total number of Yds/Att where Net Yds was 1818, and Rank was ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "college_career" (
"rank" real,
"name" text,
"attempts" real,
"net_yds" real,
"yds_att" real,
"year" real
);
Question: What is the lowest Rank when Attempts was 319, and the Year was larger th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "college_career" (
"rank" real,
"name" text,
"attempts" real,
"net_yds" real,
"yds_att" real,
"year" real
);
Question: What is the total number of Attempts when Rank was larger than 4, and Net... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"team_nickname" text,
"tenure" text,
"new_conference" text,
"new_classification" text
);
Question: What is the new conference for the Ga... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"team_nickname" text,
"tenure" text,
"new_conference" text,
"new_classification" text
);
Question: What is the new classification for La... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"team_nickname" text,
"tenure" text,
"new_conference" text,
"new_classification" text
);
Question: What is the tenure for the Tritons te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which opponent was present on March 28?
<|assistant|>
SELECT "opponent" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What is the mean game number when the points scored were more than 99?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
Question: Who is the opponent in game 7?
<|assistant|>
SELECT "opponent" FROM "schedule_and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
Question: What day in December was the game before game 11 with a record of 7-2-2?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
Question: What is the day in December of the game against the Boston Bruins?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
Question: What is the average day in December of the game with a 8-2-3 record?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "production" (
"system" text,
"owner" text,
"quantity" real,
"delivery" text,
"length" text,
"gauge" text,
"operation" text,
"seats" real,
"standing" real
);
Question: How many seats hav... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "production" (
"system" text,
"owner" text,
"quantity" real,
"delivery" text,
"length" text,
"gauge" text,
"operation" text,
"seats" real,
"standing" real
);
Question: Which owner has 84... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "production" (
"system" text,
"owner" text,
"quantity" real,
"delivery" text,
"length" text,
"gauge" text,
"operation" text,
"seats" real,
"standing" real
);
Question: Which deliver has ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "host_cities" (
"year" text,
"theme" text,
"host_city" text,
"venue" text,
"hosts" text
);
Question: What is the host city that has Alicia Keys listed as a host?
<|assistant|>
SELECT "host_city"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "host_cities" (
"year" text,
"theme" text,
"host_city" text,
"venue" text,
"hosts" text
);
Question: What is the host city of the Singapore Indoor Stadium venue and a Valentine's Day theme?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "host_cities" (
"year" text,
"theme" text,
"host_city" text,
"venue" text,
"hosts" text
);
Question: What year will Bangkok be the host city and Alicia Keys host?
<|assistant|>
SELECT "year" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "host_cities" (
"year" text,
"theme" text,
"host_city" text,
"venue" text,
"hosts" text
);
Question: Who are the hosts from the event with a theme of codehunters and the host city of Bangkok?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "host_cities" (
"year" text,
"theme" text,
"host_city" text,
"venue" text,
"hosts" text
);
Question: Who are the hosts for the 2004 event?
<|assistant|>
SELECT "hosts" FROM "host_cities" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_wins_10" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What date has a margin of victory of 1 stroke over Greg Kraft... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_wins_10" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was the margin of victory over Steve Rintoul?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_wins_10" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was the margin of victory over Brad Faxon?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"model" text,
"years" text,
"engine" text,
"displ" text,
"power" text,
"torque" text
);
Question: What years show Model of 2.0 tdi (cr) dpf?
<|assistant|>
SELECT "years" FROM "engi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"model" text,
"years" text,
"engine" text,
"displ" text,
"power" text,
"torque" text
);
Question: What is the power for model 2.0 tdi (cr) dpf, and a Years of 2010–2011?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"model" text,
"years" text,
"engine" text,
"displ" text,
"power" text,
"torque" text
);
Question: What is the torque for Model of 2.0 bitdi (cr) dpf, in 2010–?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"model" text,
"years" text,
"engine" text,
"displ" text,
"power" text,
"torque" text
);
Question: What is the engine for model 2.0 bitdi (cr) dpf, with a Torque of n·m (lb·ft) @ 15... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_daimy" (
"name" text,
"tenure" text,
"courtesy_title" text,
"court_rank" text,
"revenues" text,
"lineage" text
);
Question: What is the Court Rank of Son of Norihiro's Lineage?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demography" (
"year" text,
"1801" text,
"1811" text,
"1821" text,
"1841" text,
"1851" text,
"1861" text,
"1871" text,
"1881" text,
"1891" text,
"1901" text
);
Question: Name the 181... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demography" (
"year" text,
"1801" text,
"1811" text,
"1821" text,
"1841" text,
"1851" text,
"1861" text,
"1871" text,
"1881" text,
"1891" text,
"1901" text
);
Question: Name the 186... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demography" (
"year" text,
"1801" text,
"1811" text,
"1821" text,
"1841" text,
"1851" text,
"1861" text,
"1871" text,
"1881" text,
"1891" text,
"1901" text
);
Question: Name the 190... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demography" (
"year" text,
"1801" text,
"1811" text,
"1821" text,
"1841" text,
"1851" text,
"1861" text,
"1871" text,
"1881" text,
"1891" text,
"1901" text
);
Question: Name the 182... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demography" (
"year" text,
"1801" text,
"1811" text,
"1821" text,
"1841" text,
"1851" text,
"1861" text,
"1871" text,
"1881" text,
"1891" text,
"1901" text
);
Question: Name the 182... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_places" (
"place" text,
"code" real,
"area_km_2" real,
"population" real,
"most_spoken_language" text
);
Question: What's the sum of Code with a Population that's larger than 1,752, a Most... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_places" (
"place" text,
"code" real,
"area_km_2" real,
"population" real,
"most_spoken_language" text
);
Question: What's the sum of the Area (KM 2) that's got a Population that's smaller ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_places" (
"place" text,
"code" real,
"area_km_2" real,
"population" real,
"most_spoken_language" text
);
Question: What's the lowest Code that's got a Most Spoke Language of Xhosa, a Place... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
Question: What is the score at game 31?
<|assistant|>
SELECT "score" FROM "game_log" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superbike_race_1_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: What is the Grid for Rider Ruben Xaus?
<|assistant|>
SELECT MIN("grid") FROM "su... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superbike_race_1_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: What was the number of Laps with a Grid of more than 3 and Time of 39:24.967?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superbike_race_1_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: What Rider had a Time of +1:08.291?
<|assistant|>
SELECT "rider" FROM "superbike... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superbike_race_1_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: Using a Ducati 999 F06 Bike, how many Laps with a Grid greater than 11 and Time ... |
<|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: When was there a record of 13–17–3?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "record"='13... |
<|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 record was made in vancouver on December 8?
<|assistant|>
SELECT "record" FROM "game_log" WHE... |
<|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 was the home who had California visiting?
<|assistant|>
SELECT "home" FROM "game_log" WHERE "... |
<|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 on December 1 when Philadelphia visited?
<|assistant|>
SELECT "score" FROM "game_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1966" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: What was the type of game with a 1:6 result?
<|assistant|>
SELECT "type_of_game" FROM "1966" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1966" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: Who was the opponent at the game in Belgrade with a 0:2 result?
<|assistant|>
SELECT "opponen... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1966" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: What city held the game with a result of 1:0?
<|assistant|>
SELECT "city" FROM "1966" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1966" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: What type of game had a result of 1:2?
<|assistant|>
SELECT "type_of_game" FROM "1966" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1966" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: What was the result of the game against Hungary?
<|assistant|>
SELECT "results" FROM "1966" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: Who was the Radio Edit Version remixed by?
<|assistant|>
SELECT "remixed_by" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: What was the Version prior to 1996?
<|assistant|>
SELECT "version" FROM "official_v... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
Question: What is the Date of Catalog 573 194-2?
<|assistant|>
SELECT "date" FROM "release_history"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
Question: What is the Label of the release in CD Maxi Format?
<|assistant|>
SELECT "label" FROM "re... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
Question: What is the Catalog number of the CD Single?
<|assistant|>
SELECT "catalog" FROM "release... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mountain_dew_250" (
"pos" real,
"car_num" real,
"driver" text,
"make" text,
"team" text
);
Question: Which Make has a Pos larger than 9?
<|assistant|>
SELECT "make" FROM "mountain_dew_250" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mountain_dew_250" (
"pos" real,
"car_num" real,
"driver" text,
"make" text,
"team" text
);
Question: Which Pos has a Driver of brian scott (r)?
<|assistant|>
SELECT SUM("pos") FROM "mountain_de... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mountain_dew_250" (
"pos" real,
"car_num" real,
"driver" text,
"make" text,
"team" text
);
Question: How many Pos have a Driver of todd bodine, and a Car # larger than 30?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mountain_dew_250" (
"pos" real,
"car_num" real,
"driver" text,
"make" text,
"team" text
);
Question: Which Car # has a Make of toyota, and a Pos of 7?
<|assistant|>
SELECT MAX("car_num") FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"track_number" real,
"title" text,
"songwriter_s" text,
"recording_date" text,
"time" text
);
Question: How many track numbers were recorded on November 16, 1959 for the title ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"track_number" real,
"title" text,
"songwriter_s" text,
"recording_date" text,
"time" text
);
Question: On what date was My Lord What a Mornin' recorded?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"track_number" real,
"title" text,
"songwriter_s" text,
"recording_date" text,
"time" text
);
Question: What is the average track number 3:25 long and a title of Great Getting ... |
<|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 Date has a Record of 2–7–0–1?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "record"='2–... |
<|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 the Visitor on march 16?
<|assistant|>
SELECT "visitor" FROM "game_log" WHERE "date"='march... |
<|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 Record is on november 16?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "date"='novemb... |
<|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 is the Home on december 10?
<|assistant|>
SELECT "home" FROM "game_log" WHERE "date"='decembe... |
<|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 Score has a Date on november 11?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "date"='... |
<|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 Record has a Date on december 18?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "date"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chicago_black_hawks_4_detroit_red_wings_" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What visitor has march 26 as the date?
<|assistant|>
SELECT "visit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chicago_black_hawks_4_detroit_red_wings_" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What visitor has detroit red wings as the home, and march 30 as th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chicago_black_hawks_4_detroit_red_wings_" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What record has chicago black hawks as the visitor and march 23 as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chicago_black_hawks_4_detroit_red_wings_" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What record has march 30 as the date?
<|assistant|>
SELECT "record... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ncaa_consensus_all_american_team" (
"position" text,
"name" text,
"school" text,
"unanimous" text,
"college_hall_of_fame" text
);
Question: What is the unanimous result of the player from Michi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ncaa_consensus_all_american_team" (
"position" text,
"name" text,
"school" text,
"unanimous" text,
"college_hall_of_fame" text
);
Question: What is the position of the player with a unanimous n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ncaa_consensus_all_american_team" (
"position" text,
"name" text,
"school" text,
"unanimous" text,
"college_hall_of_fame" text
);
Question: What is the school of the player with a college hall ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ncaa_consensus_all_american_team" (
"position" text,
"name" text,
"school" text,
"unanimous" text,
"college_hall_of_fame" text
);
Question: What is the school of the player who plays ends?
<|as... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.