text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "waitaki_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: What is the total roll with a decile less than 7, and an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "waitaki_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: What year has a decile more than 6, in the Waikouaiti ar... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indoor" (
"year" text,
"division" text,
"league" text,
"regular_season" text,
"playoffs" text
);
Question: What place did the Nashville Metros place in the 1994/95 Season?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indoor" (
"year" text,
"division" text,
"league" text,
"regular_season" text,
"playoffs" text
);
Question: What years did the Nashville Metros have Usisl Indoor League?
<|assistant|>
SELECT "ye... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_4_4" (
"edition" text,
"round" text,
"date" text,
"surface" text,
"opponent" text,
"result" text
);
Question: Which Round has kim eun-ha as an Opponent?
<|assistant|>
SELECT "round" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_4_4" (
"edition" text,
"round" text,
"date" text,
"surface" text,
"opponent" text,
"result" text
);
Question: Which kind of Edition that has a Surface of clay, and Park Sung-Hee as an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the highest gold number count where a county had over 9 golds and 10 silvers?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many bronze medals did the country with 7 medals and over 5 silver medals receive?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_africa_in_england" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: Name the date for venue of lord's
<|assistant|>
SELECT "date" FROM "so... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_africa_in_england" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: Name the result for venue of lord's
<|assistant|>
SELECT "result" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_africa_in_england" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: Name the date for result of eng by 23 runs
<|assistant|>
SELECT "date"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_africa_in_england" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: Name the date for result of draw, and venue of edgbaston
<|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" real
);
Question: What is the total number of weeks that the Seahawks had... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "match_record" (
"name" text,
"period" text,
"matches" text,
"wins" text,
"draws" text,
"losses" text
);
Question: Who has 1 win, 1 loss, and has played 2 matches?
<|assistant|>
SELECT "name" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "match_record" (
"name" text,
"period" text,
"matches" text,
"wins" text,
"draws" text,
"losses" text
);
Question: Who has 5 losses and has played 11 matches?
<|assistant|>
SELECT "name" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "match_record" (
"name" text,
"period" text,
"matches" text,
"wins" text,
"draws" text,
"losses" text
);
Question: How many matches has Mohammad Al-Shamlan played when there is 1 win?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "match_record" (
"name" text,
"period" text,
"matches" text,
"wins" text,
"draws" text,
"losses" text
);
Question: How many matches were played when there was 1 draw and 1 win?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_2011_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_2011_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_2011_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_2011_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_2011_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "176_seats_needed_for_a_majority" (
"polling_firm" text,
"date" text,
"link" text,
"psoe" text,
"others" text,
"lead" text
);
Question: What is lead for the Election Results polling firm and h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "176_seats_needed_for_a_majority" (
"polling_firm" text,
"date" text,
"link" text,
"psoe" text,
"others" text,
"lead" text
);
Question: What is the PSOE for the Local Elections polling firm?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "176_seats_needed_for_a_majority" (
"polling_firm" text,
"date" text,
"link" text,
"psoe" text,
"others" text,
"lead" text
);
Question: Which date has a PSOE of 36.1%?
<|assistant|>
SELECT "da... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" real
);
Question: Name the height with 9 floors
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" real
);
Question: Name the years as tallest when floors are larger tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" real
);
Question: Tell me the name that has 17 floors
<|assistant|>
SE... |
<|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: Which was the position for overall less than 254, ... |
<|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: Name the round having an overall of 6
<|assistant|... |
<|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: Name the position of the player from college of vi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the date of the game that had a goal of 3?
<|assistant|>
SELECT "date" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the date of the game that had a goal of 4?
<|assistant|>
SELECT "date" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_barclays" (
"player" text,
"country" text,
"score" text,
"to_par" real,
"points" real,
"winnings" real
);
Question: If the points are over 1,613 and a To par under -14, what is the overal... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What is the highest rank of a swimmer in lane 5?
<|assistant|>
SELECT MAX("rank") FROM "semifi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What is the lowest rank of Jens Kruppa in a lane larger than 2?
<|assistant|>
SELECT MIN("rank... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: Which nationality has a lane of 6 and a rank smaller than 6?
<|assistant|>
SELECT "nationality... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
Question: What is Tony Jacklin's total?
<|assistant|>
SELECT "total" FROM "missed_the_cut" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
Question: What was Todd Hamilton's to par?
<|assistant|>
SELECT "to_par" FROM "missed_the_cut"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
Question: When was a game won with more than 11 to par?
<|assistant|>
SELECT "year_s_won" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rjfm_stations" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"station_type" text,
"location" text
);
Question: Where is the place that has a Callsign of DWRJ-FM?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rjfm_stations" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"station_type" text,
"location" text
);
Question: Which Power has Location in metro manila
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_5" (
"date" text,
"tournament" text,
"surface" text,
"tier" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: Which tier of the tournament has Mont de M... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_5" (
"date" text,
"tournament" text,
"surface" text,
"tier" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: Which date has opponents, Akgul Amanmurado... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_5" (
"date" text,
"tournament" text,
"surface" text,
"tier" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: Which date has opponents, Claire De Gubern... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_5" (
"date" text,
"tournament" text,
"surface" text,
"tier" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: What is the score in the touranament of An... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_5" (
"date" text,
"tournament" text,
"surface" text,
"tier" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: Which date has the tier of Itf $10k?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"as_of_september_1_2012" text,
"vs_protoss" text,
"vs_terran" text,
"vs_zerg" text,
"vs_all" text
);
Question: What is the value vs. Zerg with a September 1, 2012 best streak?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"as_of_september_1_2012" text,
"vs_protoss" text,
"vs_terran" text,
"vs_zerg" text,
"vs_all" text
);
Question: What is the score vs. all when the score vs. Terran is 159?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"as_of_september_1_2012" text,
"vs_protoss" text,
"vs_terran" text,
"vs_zerg" text,
"vs_all" text
);
Question: What is the score vs. Protoss when the score vs. Terran is 10 wins?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"as_of_september_1_2012" text,
"vs_protoss" text,
"vs_terran" text,
"vs_zerg" text,
"vs_all" text
);
Question: What is the score vs. Zerg with wins as of September 1,2012?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"as_of_september_1_2012" text,
"vs_protoss" text,
"vs_terran" text,
"vs_zerg" text,
"vs_all" text
);
Question: What is the score vs. Terran when the score vs. Zerg is 69?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"as_of_september_1_2012" text,
"vs_protoss" text,
"vs_terran" text,
"vs_zerg" text,
"vs_all" text
);
Question: What occurrs as of September 1, 2012 when the value for vs. all is 6... |
<|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,
"score" text,
"result" text,
"attendance" text,
"record" text
);
Question: What is the record of the opponent that has a bye?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "percussion_scholastic_concert_world_clas" (
"ensemble" text,
"gold_medals" real,
"silver_medals" real,
"bronze_medals" real,
"total_medals" real
);
Question: What was the average total medals r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "percussion_scholastic_concert_world_clas" (
"ensemble" text,
"gold_medals" real,
"silver_medals" real,
"bronze_medals" real,
"total_medals" real
);
Question: What was the total number of medals... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "percussion_scholastic_concert_world_clas" (
"ensemble" text,
"gold_medals" real,
"silver_medals" real,
"bronze_medals" real,
"total_medals" real
);
Question: What is the highest number of bronz... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the Score of the 2008 Africa Cup of Nations Competition?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: After 1961, who as the Entrant when the engine was a Ferrari v8, and when ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What is was the Chassis in 1967?
<|assistant|>
SELECT "chassis" FROM "comp... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: In 1962, what was the total number of points, when the Engine was Ferrari ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: In 1961, what was the Chassis when the points were lower than 6?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What was the sum of the years, when the entrant was Scuderia Ferrari, and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What was the sum of the years, when the entrant was Scuderia Centro Sud, a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "palmerston_north_city" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" text
);
Question: In the tkkm o manawatu coed school in kelvin grove,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "palmerston_north_city" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" text
);
Question: which Authority has a coed school with a decile gre... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"country" text,
"film_title_used_in_nomination" text,
"language" text,
"original_title" text,
"director" text
);
Question: Name the language for trotta
<|assistant|>
SELECT "langu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"country" text,
"film_title_used_in_nomination" text,
"language" text,
"original_title" text,
"director" text
);
Question: Name the original title directed by luis buñuel
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"country" text,
"film_title_used_in_nomination" text,
"language" text,
"original_title" text,
"director" text
);
Question: Name the original title directed by sudhendu roy
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"country" text,
"film_title_used_in_nomination" text,
"language" text,
"original_title" text,
"director" text
);
Question: Name the film title that is spanish from peru
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"country" text,
"film_title_used_in_nomination" text,
"language" text,
"original_title" text,
"director" text
);
Question: Name the langauge for switzerland
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances_by_nation" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the Total with 0 Silver and Gold, 1 Bronze and Rank larger than 2?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances_by_nation" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many Bronze medals were received by the nation that Ranked less than 5 and receiv... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chiroptera" (
"name" text,
"species_authority" text,
"order" text,
"family" text,
"red_list" real
);
Question: which order of bat belongs to the family of vespertilionidae and includes the nort... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: What year has WSC class?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1996_97_season_as_a_four_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" real,
"jockey" text,
"winner_2nd" text
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members_of_parliament" (
"election" text,
"1st_member" text,
"1st_party" text,
"2nd_member" text,
"2nd_party" text
);
Question: What is the 1st party with Charles Isaac Elton as the 2nd member?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members_of_parliament" (
"election" text,
"1st_member" text,
"1st_party" text,
"2nd_member" text,
"2nd_party" text
);
Question: Which election had Sir Alexander Fuller-Acland-Hood, bt as the 2n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members_of_parliament" (
"election" text,
"1st_member" text,
"1st_party" text,
"2nd_member" text,
"2nd_party" text
);
Question: Who is the 2nd member of the conservative 1st party, which had Va... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members_of_parliament" (
"election" text,
"1st_member" text,
"1st_party" text,
"2nd_member" text,
"2nd_party" text
);
Question: What is the 2nd party for a conservative 1st party with a 1st mem... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members_of_parliament" (
"election" text,
"1st_member" text,
"1st_party" text,
"2nd_member" text,
"2nd_party" text
);
Question: Who is the 1st member in the 1884 by-election?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members_of_parliament" (
"election" text,
"1st_member" text,
"1st_party" text,
"2nd_member" text,
"2nd_party" text
);
Question: What is the 2nd party in the 1874 election?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january_secondary_phase" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
);
Question: Which school had a player who played the C position?
<|assistant|>
SELECT "schoo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"game" real,
"date" text,
"score" text,
"location" text,
"time" text,
"attendance" real
);
Question: Which game is on the date October 16?
<|assistant|>
SELECT AVG("game") FROM "su... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "low_power_translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: what is the city of license for the station ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "low_power_translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: \What is the class of the station with the c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "low_power_translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: what is the class of the station with erp w ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "low_power_translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: what is the highest frequency mhz with the c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: Which constructor makes the ej15 ej15b ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.