text stringlengths 310 1.28k |
|---|
<|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: What is the sum of the gold medals of the total nation, which has more than 19 ... |
<|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: What is the average number of silver medals of the nation with 3 bronzes and mo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grammy_awards" (
"year" text,
"title" text,
"genre" text,
"label" text,
"result" text
);
Question: Which label's year was 1990?
<|assistant|>
SELECT "label" FROM "grammy_awards" WHERE "year"='1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grammy_awards" (
"year" text,
"title" text,
"genre" text,
"label" text,
"result" text
);
Question: Which result's genre was jazz when its label was columbia and its title was requiem?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grammy_awards" (
"year" text,
"title" text,
"genre" text,
"label" text,
"result" text
);
Question: Which year's label was label?
<|assistant|>
SELECT "year" FROM "grammy_awards" WHERE "label"='... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grammy_awards" (
"year" text,
"title" text,
"genre" text,
"label" text,
"result" text
);
Question: Which title's genre was jazz when it was nominated in 1996?
<|assistant|>
SELECT "title" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grammy_awards" (
"year" text,
"title" text,
"genre" text,
"label" text,
"result" text
);
Question: Which year's genre was jazz under the columbia label when it was nominated for the title Trio ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grammy_awards" (
"year" text,
"title" text,
"genre" text,
"label" text,
"result" text
);
Question: Which label's year is 1993?
<|assistant|>
SELECT "label" FROM "grammy_awards" WHERE "year"='19... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "subsidiaries" (
"company" text,
"type" text,
"principal_activities" text,
"incorporated_in" text,
"group_s_equity_shareholding" text
);
Question: What company focuses on Engine Overhaul for the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "subsidiaries" (
"company" text,
"type" text,
"principal_activities" text,
"incorporated_in" text,
"group_s_equity_shareholding" text
);
Question: What is the group equity shareholding for abacu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "subsidiaries" (
"company" text,
"type" text,
"principal_activities" text,
"incorporated_in" text,
"group_s_equity_shareholding" text
);
Question: What company has a Group Equity Shareholding va... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "subsidiaries" (
"company" text,
"type" text,
"principal_activities" text,
"incorporated_in" text,
"group_s_equity_shareholding" text
);
Question: What is the Group Equity shareholding of the co... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singapore_airlines_operating_highlights_" (
"year_ended" text,
"passengers_thousand" real,
"rpk_million" real,
"ask_million" real,
"load_factor_pct" real,
"yield_s_km" real
);
Question: What ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: When Date has a Game larger than 4 and a Team of san antonio, and a Rec... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: Which Team has a Score of 108-105 (ot)?
<|assistant|>
SELECT "team" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: Which Game has a Team of at san antonio, and a Record of 3-3?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: Which Record has a Score of 105-115?
<|assistant|>
SELECT "record" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_records" (
"season" real,
"division" text,
"wins" real,
"losses" real,
"ties" real,
"final_position" text,
"notes" text
);
Question: What's the average amount of ties had when a team... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_09_season_as_a_four_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" real,
"time" text,
"jockey" text,
"winner_2nd" te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_09_season_as_a_four_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" real,
"time" text,
"jockey" text,
"winner_2nd" te... |
<|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 Opponent has a Date of november 21, 1999?
<|assistant|>
SELECT "opponent" 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: Which Attendance has a Week smaller than 8, and an Opponent of philadelphia eagles?
<|assist... |
<|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 a Result of l 26–16?
<|assistant|>
SELECT "attendance" FROM "schedule" ... |
<|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 was the highest attendance on week 13?
<|assistant|>
SELECT MAX("attendance") FROM "sch... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_record" (
"result" text,
"opponent" text,
"type" text,
"round" text,
"date" text
);
Question: Which Result has a Round of 6?
<|assistant|>
SELECT "result" FROM "professional_record... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_record" (
"result" text,
"opponent" text,
"type" text,
"round" text,
"date" text
);
Question: When is a Type of tko, and an Opponent of jesse brinkley
<|assistant|>
SELECT "date" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_record" (
"result" text,
"opponent" text,
"type" text,
"round" text,
"date" text
);
Question: Which Result has an Opponent of steve walker?
<|assistant|>
SELECT "result" FROM "prof... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_record" (
"result" text,
"opponent" text,
"type" text,
"round" text,
"date" text
);
Question: Which Opponent has a Type of ud and a Round of 10 on 2008-06-11?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_record" (
"result" text,
"opponent" text,
"type" text,
"round" text,
"date" text
);
Question: Which Opponent has a Type of tko, and a Round of 2 (6) on 2006-09-20?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_record" (
"result" text,
"opponent" text,
"type" text,
"round" text,
"date" text
);
Question: When has a Type of tko, and a Round of 1 (6)
<|assistant|>
SELECT "date" FROM "profess... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpf_s_campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: How many positions have ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpf_s_campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the lowest playe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5_4_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What is the Date that has a Outcome of winner, and çağ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5_4_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What is the Outcome when çağla büyükakçay was the oppo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5_4_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What is the Score when the opponent in the final is al... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5_4_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What is the Opponent in the final when the outcome was... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5_4_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What is the Opponent in the final with an outcome of w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5_4_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What is the Score for 09-oct-2006?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "night" (
"time" text,
"06_00_pm" text,
"07_00_pm" text,
"08_00_pm" text,
"09_00_pm" text,
"10_00_pm" text,
"10_30_pm" text,
"11_00_pm" text
);
Question: What shows for 10:00 PM when the 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "night" (
"time" text,
"06_00_pm" text,
"07_00_pm" text,
"08_00_pm" text,
"09_00_pm" text,
"10_00_pm" text,
"10_30_pm" text,
"11_00_pm" text
);
Question: What is the 08:00 PM when the 07:0... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "night" (
"time" text,
"06_00_pm" text,
"07_00_pm" text,
"08_00_pm" text,
"09_00_pm" text,
"10_00_pm" text,
"10_30_pm" text,
"11_00_pm" text
);
Question: What is the 10:30 PM when the 08:0... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: What was the time of the bout... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: What was the time of the bout... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,
"years" text,
"matches" real,
"goals" real
);
Question: What is the number of matches for the player in rank 8?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_pool_c" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"total" text
);
Question: Which set 3 has a Set 1 of 19-25, and a Set 2 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_pool_c" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"total" text
);
Question: What is the set 5 if the Date is jun 7, and a ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_pool_c" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"total" text
);
Question: What is the Set 5 if Set 2 is 25-20?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Which driver's grid was 24?
<|assistant|>
SELECT "driver" FROM "race" WHERE "grid"=24;<|endoftext|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the mean number of laps when the grid is less than 19 and time/retired is +21.3 secs?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the smallest number of laps for Team Green when the grid is 1?
<|assistant|>
SELECT MIN("l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"1861" real,
"1866" real,
"1872" real,
"1876" real,
"1881" real,
"1886" real,
"1891" real
);
Question: What is the total number of 1876(s), when 1872 is less than 1921, and wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"1861" real,
"1866" real,
"1872" real,
"1876" real,
"1881" real,
"1886" real,
"1891" real
);
Question: What is the sum of 1886(s), when 1886 is greater than 1070, and when 189... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"1861" real,
"1866" real,
"1872" real,
"1876" real,
"1881" real,
"1886" real,
"1891" real
);
Question: What is the sum of 1891(s), when 1872 is less than 685, and when 1881 is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"1861" real,
"1866" real,
"1872" real,
"1876" real,
"1881" real,
"1886" real,
"1891" real
);
Question: What is the sum of 1872(s), when 1866 is greater than 856, when 1861 is ... |
<|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,
"location_attendance" text,
"record" text
);
Question: What is the Record with a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: In what round was the first outside linebacker picked?
<|assistant|>
SELECT MIN("rou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "england_in_australia_1901_2" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: Which Venue resulted in AUS by 229 runs?
<|assistant|>
SELECT "ven... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "england_in_australia_1901_2" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: Who was the Away Captain when the Home Captain was Joe Darling at ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "england_in_australia_1901_2" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: Who was the Home Captain and the Result for AUS by 4 wkts?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_league" (
"match" real,
"date" text,
"home_away" text,
"opponent_team" text,
"score" text
);
Question: What was the highest match when the away opponent was Dalian Shide Siwu?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_league" (
"match" real,
"date" text,
"home_away" text,
"opponent_team" text,
"score" text
);
Question: Which Home/Away was on April 27, 2008?
<|assistant|>
SELECT "home_away" FROM "s_league" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_league" (
"match" real,
"date" text,
"home_away" text,
"opponent_team" text,
"score" text
);
Question: What was the score on March 3, 2008?
<|assistant|>
SELECT "score" FROM "s_league" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"hangul" text,
"hanja" text,
"revised" text,
"mc_cune_reischauer" text,
"2000_n_south_korea_population" real
);
Question: What is the McCune-Reischauer when the 2000 n South Korea popul... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"hangul" text,
"hanja" text,
"revised" text,
"mc_cune_reischauer" text,
"2000_n_south_korea_population" real
);
Question: What is the Hanja for McCune-Reischauer of chŏn?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"hangul" text,
"hanja" text,
"revised" text,
"mc_cune_reischauer" text,
"2000_n_south_korea_population" real
);
Question: What is the Hangul when the Hanja is 西, 徐?
<|assistant|>
SELECT... |
<|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 is the Venue with a Result that is win, and a Score that is 5-0?
<|assistant|... |
<|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 is the Competition with a Result of win with a Score that is 1-0?
<|assistant... |
<|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: How many total Gold medals did the nation ranked #3 receive?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recent_markets" (
"ship_size" text,
"cargo" text,
"2004" text,
"2005" text,
"2006" text
);
Question: What ship size had a cargo value of $46,000 in 2006?
<|assistant|>
SELECT "ship_size" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recent_markets" (
"ship_size" text,
"cargo" text,
"2004" text,
"2005" text,
"2006" text
);
Question: What ship size had a cargo value of $31,750 in 2006?
<|assistant|>
SELECT "ship_size" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recent_markets" (
"ship_size" text,
"cargo" text,
"2004" text,
"2005" text,
"2006" text
);
Question: What was the cargo value in 2005 with a ship size of all product carriers?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recent_markets" (
"ship_size" text,
"cargo" text,
"2004" text,
"2005" text,
"2006" text
);
Question: What was the cargo value in 2004 for ship size?
<|assistant|>
SELECT "2004" FROM "recent_mar... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recent_markets" (
"ship_size" text,
"cargo" text,
"2004" text,
"2005" text,
"2006" text
);
Question: What cargo was contained in a ship size of aframax?
<|assistant|>
SELECT "cargo" FROM "recen... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recent_markets" (
"ship_size" text,
"cargo" text,
"2004" text,
"2005" text,
"2006" text
);
Question: What was the cargo value in 2005 for all product carriers?
<|assistant|>
SELECT "2005" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vital_statistics" (
"average_population_x_1_000" text,
"live_births" text,
"deaths" text,
"natural_change" text,
"migration" text,
"crude_birth_rate_per_1_000" real,
"crude_death_rate_per_1_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vital_statistics" (
"average_population_x_1_000" text,
"live_births" text,
"deaths" text,
"natural_change" text,
"migration" text,
"crude_birth_rate_per_1_000" real,
"crude_death_rate_per_1_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vital_statistics" (
"average_population_x_1_000" text,
"live_births" text,
"deaths" text,
"natural_change" text,
"migration" text,
"crude_birth_rate_per_1_000" real,
"crude_death_rate_per_1_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vital_statistics" (
"average_population_x_1_000" text,
"live_births" text,
"deaths" text,
"natural_change" text,
"migration" text,
"crude_birth_rate_per_1_000" real,
"crude_death_rate_per_1_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,
"years" text,
"games" real,
"goals" real,
"goals_games" real
);
Question: What is the average Goals/Games for Rummenigge,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,
"years" text,
"games" real,
"goals" real,
"goals_games" real
);
Question: What is the sum of Games for Allofs, Klaus, wit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,
"years" text,
"games" real,
"goals" real,
"goals_games" real
);
Question: What is the highest Rank for more than 220 goal... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"title" text,
"length" text,
"writer" text,
"composer" text,
"arranger" text
);
Question: Who is the composer of El Hanone?
<|assistant|>
SELECT "composer" FROM "track_listing"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"title" text,
"length" text,
"writer" text,
"composer" text,
"arranger" text
);
Question: Which arranger worked with composer Imad Shams Eldeen at 4:03?
<|assistant|>
SELECT "a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"title" text,
"length" text,
"writer" text,
"composer" text,
"arranger" text
);
Question: What is the title track that is 3:50 and arranged by Tarek Akef?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"title" text,
"length" text,
"writer" text,
"composer" text,
"arranger" text
);
Question: Who is the arranger for Ana Rouh?
<|assistant|>
SELECT "arranger" FROM "track_listing"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"title" text,
"length" text,
"writer" text,
"composer" text,
"arranger" text
);
Question: Who was the writer that worked with arranger Tarek Akef on a 4:58 song?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director_s" text,
"result" text
);
Question: What is the year of the ceremony with a not nomin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director_s" text,
"result" text
);
Question: What is the year of the ceremony with the origina... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director_s" text,
"result" text
);
Question: What is the result of the ceremony in 2006 (79th)... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director_s" text,
"result" text
);
Question: What is the film title used for nomination with t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director_s" text,
"result" text
);
Question: Who is the director of Cannibal vegetarian, which... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"result" text,
"record" text,
"opponent" text,
"points_for" real,
"points_against" real,
"first_downs" real,
"attendance" real
);
Question: What is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"result" text,
"record" text,
"opponent" text,
"points_for" real,
"points_against" real,
"first_downs" real,
"attendance" real
);
Question: What is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"result" text,
"record" text,
"opponent" text,
"points_for" real,
"points_against" real,
"first_downs" real,
"attendance" real
);
Question: What is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
Question: Which Partial... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
Question: Which Conditi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
Question: Which Platele... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
Question: Which Prothro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
Question: Which Conditi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
Question: Which Partial... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.