text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "federal_republic_of_yugoslavia" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"serbian_title" text,
"director" text,
"result" text
);
Question: What is the Film title used in no... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "federal_republic_of_yugoslavia" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"serbian_title" text,
"director" text,
"result" text
);
Question: In what Year was Labyrinth nomina... |
<|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 "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 "brazil_national_team" (
"date" text,
"result" text,
"score" text,
"brazil_scorers" text,
"competition" text
);
Question: Who were the Brazil scorers who scored 3-3?
<|assistant|>
SELECT "brazil... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazil_national_team" (
"date" text,
"result" text,
"score" text,
"brazil_scorers" text,
"competition" text
);
Question: Who is the Brazil scorer who scored 6-0?
<|assistant|>
SELECT "brazil_sc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazil_national_team" (
"date" text,
"result" text,
"score" text,
"brazil_scorers" text,
"competition" text
);
Question: With a score of 2-2, what was the Result?
<|assistant|>
SELECT "result" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "candidates" (
"background" text,
"original_team" text,
"hometown" text,
"result" text,
"raised" text
);
Question: Which Original Team has a Hometown of Brooklyn, New York and a Background of Co... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "candidates" (
"background" text,
"original_team" text,
"hometown" text,
"result" text,
"raised" text
);
Question: What is the Background of the contestant with a Hometown listed as Los Angeles,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "candidates" (
"background" text,
"original_team" text,
"hometown" text,
"result" text,
"raised" text
);
Question: What is the Background of the contestant with a Result of 07 fired in task 6 (2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "candidates" (
"background" text,
"original_team" text,
"hometown" text,
"result" text,
"raised" text
);
Question: What is the Original Team of the contestant from Wrightsville, Georgia ?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: Which Attendance has an Opponent of carolina panthers?
<|assistant|>
SELECT "attendance" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: Which Date has a Week smaller than 11, and a Attendance of 54,094?
<|assistant|>
SELECT "dat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "uk_ratings" (
"episode_number" real,
"title" text,
"original_airing_on_channel_4" text,
"time_of_airing_on_channel_4" text,
"total_viewers_and_rank_on_c4" text,
"total_viewers" text
);
Questi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which nations have more than 1 gold medal and 4 silver medals?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: In Week 7, what is the highest attendance number?
<|assistant|>
SELECT MAX("attendance") FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: In Week 13, who was the opponent?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "wee... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What date did Week 9 begin?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "week"=9;<|end... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" text,
"award" text,
"production" text,
"role" text,
"result" text
);
Question: Which award was given in 2012?
<|assistant|>
SELECT "award" FROM "awards_and_nomi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" text,
"award" text,
"production" text,
"role" text,
"result" text
);
Question: Which award was given for the role of Elphaba in 2009?
<|assistant|>
SELECT "awar... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" text,
"award" text,
"production" text,
"role" text,
"result" text
);
Question: What was the result for the role of Ellie Greenwich in 2005?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" text,
"award" text,
"production" text,
"role" text,
"result" text
);
Question: Which award was An Officer and a Gentleman nominated for?
<|assistant|>
SELECT "a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" text,
"award" text,
"production" text,
"role" text,
"result" text
);
Question: During what year was Wicked associated with the Green Room Awards?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engine_roster" (
"locomotive_number" text,
"model" text,
"type" text,
"propulsion" text,
"manufacturer" text
);
Question: What manufacturer makes locomotive number CTN 46?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engine_roster" (
"locomotive_number" text,
"model" text,
"type" text,
"propulsion" text,
"manufacturer" text
);
Question: What type is locomotive number CTN 46?
<|assistant|>
SELECT "type" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engine_roster" (
"locomotive_number" text,
"model" text,
"type" text,
"propulsion" text,
"manufacturer" text
);
Question: What type is locomotive CTN 1364?
<|assistant|>
SELECT "type" FROM "eng... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What cuts made has a wins less than 3 and 23 for the even... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the lowest events that have 17 as the cuts made, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What are the lowest cuts made that have events less than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the highest top-10 that has a u.s. open for the t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1_lyga" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
Question: How many poi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1_lyga" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
Question: What is the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Which has a Score of 6–1, 3–0 ret.?
<|assistant|>
SELECT "surface" FROM "titles... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Which Surface is on 23 january 2011?
<|assistant|>
SELECT "surface" FROM "title... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: When has a Surface of hard, a Tournament of wrexham , great britain?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Which Surface has an Opponent in the final of stéphane robert?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What kind of Surface has a Score of 6–4, 0–6, 6–2?
<|assistant|>
SELECT "surfac... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: Which Call sign has a Branding of cbc radio one?
<|assistant|>
SELECT "call_sign" FROM "ra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: WHich Frequency has a Format of country / news / sports?
<|assistant|>
SELECT "frequency" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: Which Format has a Frequency of 100.5 fm?
<|assistant|>
SELECT "format" FROM "radio" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: Which Frequency has a Branding of country 600?
<|assistant|>
SELECT "frequency" FROM "radi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: WHich format has a Frequency of 99.3 fm?
<|assistant|>
SELECT "format" FROM "radio" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,
"class_aaaa" text,
"class_aaaaa" text
);
Question: What is the Class AA where Class AA is Hale Center and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,
"class_aaaa" text,
"class_aaaaa" text
);
Question: What School Year has a Class AAAA of Dickinson?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,
"class_aaaa" text,
"class_aaaaa" text
);
Question: If the Class A is Anton and Class AAA is Burnet, what i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,
"class_aaaa" text,
"class_aaaaa" text
);
Question: If Class AAAA is Schertz Clemens and SChool Year is 198... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,
"class_aaaa" text,
"class_aaaaa" text
);
Question: Where Class AAA is Atlanta and Class AA is Weimar, what... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
Question: What was the result of the game on week 11?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
Question: After week 2, how many people attended the game at Rich... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What is the attendance when the opponent is the San Francisco 49ers?
<|assistant|>
SELECT "a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What is the result when the week is greater than 6 and the Buffalo Bills are the opponent?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What is the result when the attendance is 54,814?
<|assistant|>
SELECT "result" FROM "schedu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What is the total number of weeks when the New York Jets are the opponent?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What is the result of the game when the attendance is 56,906?
<|assistant|>
SELECT "result" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episode_5_23_february_2008" (
"index" text,
"name" text,
"song" text,
"group_song" text,
"score" text
);
Question: What Song has a Group Song of Ring Ring Ring and a Score of 6.0 + 6.5 + 5.0 + ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episode_5_23_february_2008" (
"index" text,
"name" text,
"song" text,
"group_song" text,
"score" text
);
Question: What is Song's 会呼吸的痛 Index?
<|assistant|>
SELECT "index" FROM "episode_5_23_fe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episode_5_23_february_2008" (
"index" text,
"name" text,
"song" text,
"group_song" text,
"score" text
);
Question: What Song's Index is F6?
<|assistant|>
SELECT "song" FROM "episode_5_23_februa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episode_5_23_february_2008" (
"index" text,
"name" text,
"song" text,
"group_song" text,
"score" text
);
Question: What Group Song of Shine 王幸儿?
<|assistant|>
SELECT "group_song" FROM "episode_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episode_5_23_february_2008" (
"index" text,
"name" text,
"song" text,
"group_song" text,
"score" text
);
Question: What is the Score of 我等的人会是谁?
<|assistant|>
SELECT "score" FROM "episode_5_23_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episode_5_23_february_2008" (
"index" text,
"name" text,
"song" text,
"group_song" text,
"score" text
);
Question: What is the Name of Index F3?
<|assistant|>
SELECT "name" FROM "episode_5_23_f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
Question: What is the record after the game on Feb 10?
<|assistant|>
SELECT "record" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
Question: What is the earliest day that had a game against the Boston Bruins?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "type_metal_alloys_mentioned_in_the_uk_mo" (
"sn_sb_pct" text,
"liquidat_c" real,
"solidat_c" real,
"hardness_brinell" real,
"purpose" text
);
Question: What is the sum of Solidat (c) that's pur... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "type_metal_alloys_mentioned_in_the_uk_mo" (
"sn_sb_pct" text,
"liquidat_c" real,
"solidat_c" real,
"hardness_brinell" real,
"purpose" text
);
Question: When the Sn/Sb (%) of 13/17, and a Liquid... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "type_metal_alloys_mentioned_in_the_uk_mo" (
"sn_sb_pct" text,
"liquidat_c" real,
"solidat_c" real,
"hardness_brinell" real,
"purpose" text
);
Question: How many Liquidat (c) have a purpose of d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" text
);
Question: What was the record for the Chargers on Week 10?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" text
);
Question: What was the result of the game on week 4?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" text
);
Question: How many weeks did a game happen on September 17, 2000?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" text
);
Question: What was the result of the game against San Francisco 4... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"week_of" text,
"tier" text,
"winner" text,
"runner_up" text,
"semi_finalists" text
);
Question: Who were semi-finalists in the event with a runner-up of Lisa Raymond?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"volume_issue" text,
"issue_date_s" text,
"weeks_on_top" real,
"song" text,
"artist" text
);
Question: Which song by David Essex spent 2 weeks on top of the charts?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"volume_issue" text,
"issue_date_s" text,
"weeks_on_top" real,
"song" text,
"artist" text
);
Question: What is the Volume:Issue number of the George McCrae song that spent less than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct" (
"venue" text,
"location" text,
"environment" text,
"closed" text,
"reason" text
);
Question: Which venues closed in the 1990s?
<|assistant|>
SELECT "venue" FROM "defunct" WHERE "clos... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct" (
"venue" text,
"location" text,
"environment" text,
"closed" text,
"reason" text
);
Question: Which venues were closed because they were replaced?
<|assistant|>
SELECT "location" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct" (
"venue" text,
"location" text,
"environment" text,
"closed" text,
"reason" text
);
Question: Which venue closed in 1996?
<|assistant|>
SELECT "venue" FROM "defunct" WHERE "closed"='1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct" (
"venue" text,
"location" text,
"environment" text,
"closed" text,
"reason" text
);
Question: What were the reasons that venues closed in the 1990s?
<|assistant|>
SELECT "reason" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct" (
"venue" text,
"location" text,
"environment" text,
"closed" text,
"reason" text
);
Question: Why did the Belk Gymnasium close?
<|assistant|>
SELECT "reason" FROM "defunct" WHERE "ven... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semi_finals" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" real,
"box_score" text,
"report" text
);
Question: Can you tell me the Score that has t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semi_finals" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" real,
"box_score" text,
"report" text
);
Question: Can you tell me the Venue that has t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semi_finals" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" real,
"box_score" text,
"report" text
);
Question: Can you tell me the lowest Crowd tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semi_finals" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" real,
"box_score" text,
"report" text
);
Question: Can you tell me the Away team that h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
);
Question: Which position has a pick # of 238 and a round above 3?
<|assistant|>
SELECT "position" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
);
Question: Which player went to Vanderbilt?
<|assistant|>
SELECT "player" FROM "nfl_draft" WHERE "co... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: How many grids had a Time/Retired of +4 laps?
<|assistant|>
SELECT COUNT("grid") FROM "race... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: How many laps had a constructor of toyota and a Time/Retired of +13.409?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What was the constructor when the laps were larger than 54, and the time/retired was +1 lap... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: How many grids had a constructor of renault and less than 4 laps?
<|assistant|>
SELECT SUM(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" real,
"population" real,
"census_ranking" text
);
Question: Which census ranking is 57.06 km big?
<|assistant|>
SELECT "census_ra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" real,
"population" real,
"census_ranking" text
);
Question: Which status is 75.35 km2 and is named sussex?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1930_31_season_as_a_four_year_old" (
"result" text,
"race" text,
"distance" text,
"weight" real,
"winner_or_2nd" text,
"pos_n" text
);
Question: What was the distance for the winner or 2nd Wa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1930_31_season_as_a_four_year_old" (
"result" text,
"race" text,
"distance" text,
"weight" real,
"winner_or_2nd" text,
"pos_n" text
);
Question: What is the result for the distance of 10f, an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1978" text,
"1979" text,
"1980" text,
"1982" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1978" text,
"1979" text,
"1980" text,
"1982" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1978" text,
"1979" text,
"1980" text,
"1982" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1978" text,
"1979" text,
"1980" text,
"1982" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1978" text,
"1979" text,
"1980" text,
"1982" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1978" text,
"1979" text,
"1980" text,
"1982" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.