text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_40_albums_of_2004" (
"position" real,
"album_title" text,
"artist" text,
"highest_position" real,
"sales" real
);
Question: What is the lowest high position for 10 years of hits, and over 8... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_40_albums_of_2004" (
"position" real,
"album_title" text,
"artist" text,
"highest_position" real,
"sales" real
);
Question: What is the average high position for the album unwritten?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "formula_one_2004_race_schedule" (
"round" real,
"race_title" text,
"grand_prix" text,
"circuit" text,
"date" text
);
Question: When did the Grand Prix de Monaco race?
<|assistant|>
SELECT "date... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "formula_one_2004_race_schedule" (
"round" real,
"race_title" text,
"grand_prix" text,
"circuit" text,
"date" text
);
Question: What circuit had 16 rounds?
<|assistant|>
SELECT "circuit" FROM "f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "formula_one_2004_race_schedule" (
"round" real,
"race_title" text,
"grand_prix" text,
"circuit" text,
"date" text
);
Question: Which Grand Prix had 9 rounds?
<|assistant|>
SELECT "grand_prix" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fares" (
"fare_categories" text,
"base_fares" text,
"day_pass" text,
"7_day_pass" text,
"30_day_pass" text
);
Question: What is the Base Fare in the senior/disabled category?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fares" (
"fare_categories" text,
"base_fares" text,
"day_pass" text,
"7_day_pass" text,
"30_day_pass" text
);
Question: Which 30-day Pass has a Base Fare of $3?
<|assistant|>
SELECT "30_day_pas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bus_fleet" (
"year" text,
"make_model" text,
"length" text,
"engine_type" text,
"numbers" text
);
Question: What is the length for years 2012-2013?
<|assistant|>
SELECT "length" FROM "bus_fleet... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bus_fleet" (
"year" text,
"make_model" text,
"length" text,
"engine_type" text,
"numbers" text
);
Question: If length is ft (m) with numbers of 6600-6684 (84 buses) for 2003, what is the engine... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bus_fleet" (
"year" text,
"make_model" text,
"length" text,
"engine_type" text,
"numbers" text
);
Question: For numbers of 2600-2825 (223 buses), what is the length?
<|assistant|>
SELECT "lengt... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bus_fleet" (
"year" text,
"make_model" text,
"length" text,
"engine_type" text,
"numbers" text
);
Question: What is the lenth of a 2003 Make & Model of nabi 35-lfw?
<|assistant|>
SELECT "length... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bus_fleet" (
"year" text,
"make_model" text,
"length" text,
"engine_type" text,
"numbers" text
);
Question: What is the length for a diesel engine with numbers of tbd (13 buses)?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bus_fleet" (
"year" text,
"make_model" text,
"length" text,
"engine_type" text,
"numbers" text
);
Question: What year has a make & model of mci d4000n?
<|assistant|>
SELECT "year" FROM "bus_fle... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_sunk_or_captured_by_moewe_on_her_s" (
"date" text,
"ship" text,
"type" text,
"nationality" text,
"tonnage_grt" real
);
Question: What type has a Date of 8 dec 16, and a Ship of duchess of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_sunk_or_captured_by_moewe_on_her_s" (
"date" text,
"ship" text,
"type" text,
"nationality" text,
"tonnage_grt" real
);
Question: Which Nationality has a Tonnage GRT larger than 2,890, and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_sunk_or_captured_by_moewe_on_her_s" (
"date" text,
"ship" text,
"type" text,
"nationality" text,
"tonnage_grt" real
);
Question: Which nationality has a Ship of minteh?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_sunk_or_captured_by_moewe_on_her_s" (
"date" text,
"ship" text,
"type" text,
"nationality" text,
"tonnage_grt" real
);
Question: What is the total Tonnage GRT with a Type of cargo ship, a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_sunk_or_captured_by_moewe_on_her_s" (
"date" text,
"ship" text,
"type" text,
"nationality" text,
"tonnage_grt" real
);
Question: Which Date has a Ship of hallbjorg?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_e" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
Question: What is the score of set 3 when the total is 45–31?
<|assistant|>
SELECT "set_3" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_e" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
Question: What is the score for set 2 when set 3 was 15–6?
<|assistant|>
SELECT "set_2" FROM "po... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_e" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
Question: What is the total when the score of set 1 was 15–11?
<|assistant|>
SELECT "total" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_e" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
Question: What is the total when the score of set 1 is 15–11?
<|assistant|>
SELECT "total" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_e" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
Question: On what date was the total 25–45?
<|assistant|>
SELECT "date" FROM "pool_e" WHERE "tot... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the score of the Away team when ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was St Kilda's score as the Away tea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: At what Venue was the Home team score 17.... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: At the venue Vfl Park, what was the Home ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
"rd_num" real,
"pick_num" real,
"player" text,
"team_league" text,
"reg_gp" real,
"pl_gp" real
);
Question: How many Reg GP does daniel rahimi have wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
"rd_num" real,
"pick_num" real,
"player" text,
"team_league" text,
"reg_gp" real,
"pl_gp" real
);
Question: What is the lowest Pick # with michael gra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "southern_fells" (
"peak" text,
"height_m" real,
"prom_m" real,
"class" text,
"parent" text
);
Question: Which class has a peak named fountains fell south top?
<|assistant|>
SELECT "class" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "southern_fells" (
"peak" text,
"height_m" real,
"prom_m" real,
"class" text,
"parent" text
);
Question: What is the total of Prom in M for Peak great knoutberry hill?
<|assistant|>
SELECT SUM("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "southern_fells" (
"peak" text,
"height_m" real,
"prom_m" real,
"class" text,
"parent" text
);
Question: What is the average height for hewitt class, with prom less than 86, and a Peak of gragar... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tamil_songs" (
"year" real,
"song_title" text,
"movie" text,
"music_director" text,
"co_singers" text
);
Question: In which movie is Selva Nambi a co-singer?
<|assistant|>
SELECT "movie" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tamil_songs" (
"year" real,
"song_title" text,
"movie" text,
"music_director" text,
"co_singers" text
);
Question: Who was the music director in 1994?
<|assistant|>
SELECT "music_director" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_london_revival" (
"year" real,
"award" text,
"category" text,
"nominee" text,
"result" text
);
Question: What years was Denis Lawson nominated for an award?
<|assistant|>
SELECT COUNT("yea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_london_revival" (
"year" real,
"award" text,
"category" text,
"nominee" text,
"result" text
);
Question: Did Jason Pennycooke win the award he was nominated for?
<|assistant|>
SELECT "resu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_london_revival" (
"year" real,
"award" text,
"category" text,
"nominee" text,
"result" text
);
Question: How many years was Best Musical Revival nominated?
<|assistant|>
SELECT COUNT("year... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_london_revival" (
"year" real,
"award" text,
"category" text,
"nominee" text,
"result" text
);
Question: What award was Denis Lawson nominated for in the Best Actor in a Musical category?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_6_4_titles_2_runners_up" (
"outcome" text,
"date" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which opponent has an Outcome of winner, and a Date of 5 november 2011... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_6_4_titles_2_runners_up" (
"outcome" text,
"date" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which date has a Score of 4–6, 2–6?
<|assistant|>
SELECT "date" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_6_4_titles_2_runners_up" (
"outcome" text,
"date" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which date has a Opponent of juan mónaco, and a Score of 6–2, 4–6, 7–6... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_6_4_titles_2_runners_up" (
"outcome" text,
"date" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which outcome has a Opponent of fernando verdasco?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_6_4_titles_2_runners_up" (
"outcome" text,
"date" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which surface has an Opponent of fernando verdasco?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_6_4_titles_2_runners_up" (
"outcome" text,
"date" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which surface has a Date of 5 november 2011?
<|assistant|>
SELECT "sur... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When the Venue was mcg what was the sum ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: If the Away team is essendon, what was t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: On what Date did the Away team essendon ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When the Home team was north melbourne w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: What was the record as of September 1?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "date"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: What was the losing score on September 1?
<|assistant|>
SELECT "loss" FROM "game_log" WHERE "date... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_singles_tournament_timeline" (
"tournament" text,
"1980" text,
"1981" text,
"1982" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"198... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_singles_tournament_timeline" (
"tournament" text,
"1980" text,
"1981" text,
"1982" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"198... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roller_coasters" (
"name" text,
"model" text,
"park" text,
"opened" text,
"status" text
);
Question: What is the name of the rollercoaster that opened in 2004 in bobbejaanland?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roller_coasters" (
"name" text,
"model" text,
"park" text,
"opened" text,
"status" text
);
Question: What is the status of the junior coaster model that opened in 2008?
<|assistant|>
SELECT "st... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roller_coasters" (
"name" text,
"model" text,
"park" text,
"opened" text,
"status" text
);
Question: What is the model for Thor's Hammer which is listed as operating?
<|assistant|>
SELECT "mode... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roller_coasters" (
"name" text,
"model" text,
"park" text,
"opened" text,
"status" text
);
Question: What is the name of the coaster that opened in 2011 and is a euro-fighter model?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: Which driver won the iv j.c.c. jersey roa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_record" (
"season" text,
"team_name" text,
"games" real,
"losses" real,
"points" real
);
Question: What's the total number of games that had more than 34 points and exactly 3 losses?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_record" (
"season" text,
"team_name" text,
"games" real,
"losses" real,
"points" real
);
Question: What's the total number of losses with less than 19 points and more than 36 games?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_record" (
"season" text,
"team_name" text,
"games" real,
"losses" real,
"points" real
);
Question: Which season has less than 26 points, more than 18 games, and exactly 13 losses?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the highest crowd number of the g... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the home team score that played t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the away team score of the game t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: If the Home team had a score of 21.22 (14... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: If the Home team is carlton, what's the l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the average amount of attenders ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the away team score when the hom... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Where did the game take place when the a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007" (
"block_a" text,
"ryuji_hijikata" text,
"shuji_kondo" text,
"el_nosawa_mendoza" text,
"pepe_michinoku" text,
"katsuhiko_nakajima" text
);
Question: What is the Block A value for an El ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007" (
"block_a" text,
"ryuji_hijikata" text,
"shuji_kondo" text,
"el_nosawa_mendoza" text,
"pepe_michinoku" text,
"katsuhiko_nakajima" text
);
Question: What is the PEPE Michinoku value for... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007" (
"block_a" text,
"ryuji_hijikata" text,
"shuji_kondo" text,
"el_nosawa_mendoza" text,
"pepe_michinoku" text,
"katsuhiko_nakajima" text
);
Question: What is the Shuji Kondo value relate... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "b" (
"player" text,
"pos" text,
"from" real,
"school_country" text,
"rebs" real,
"asts" real
);
Question: when did asts reach 0?
<|assistant|>
SELECT "from" FROM "b" WHERE "asts"=0;<|endoftex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "b" (
"player" text,
"pos" text,
"from" real,
"school_country" text,
"rebs" real,
"asts" real
);
Question: beyond 2001, what is the lowest asts from a pos of sf?
<|assistant|>
SELECT MIN("asts... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "5701_5800" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
);
Question: Tell me the declinatio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "competition_overall" (
"competition" text,
"current_position_round" text,
"final_position_round" text,
"first_match" text,
"last_match" text
);
Question: Tell me the final position for fa commu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "competition_overall" (
"competition" text,
"current_position_round" text,
"final_position_round" text,
"first_match" text,
"last_match" text
);
Question: Name the first match for 11 may 2008
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lifetime_distributor_share" (
"rank" real,
"movie" text,
"year" real,
"studio_s" text,
"lifetime_india_distributor_share" real
);
Question: What is the total number of Lifetime India Distributo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When did South Melbourne play as the hom... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the largest amount of spectator... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was Richmond's score when it was th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "3301_3400" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text
);
Question: what is the declination (j2000) that has a constell... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "3301_3400" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text
);
Question: What is the ngc number when the object type is lent... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "3301_3400" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text
);
Question: what is the object type when the ngc number is 3314... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "3301_3400" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text
);
Question: what is the ngc number when the constellation is le... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "3301_3400" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text
);
Question: what is the right ascension (j2000) with the ngc nu... |
<|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 competition was played on October 7, 2011?
<|assistant|>
SELECT "competition"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1990s" (
"year" real,
"date" text,
"location" text,
"score" text,
"result" text
);
Question: What's the score for 1992, with the result of a loss?
<|assistant|>
SELECT "score" FROM "1990s" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_and_fourth_tiers" (
"season" text,
"club" text,
"national_league" text,
"national_cup" text,
"european_cup" text
);
Question: What national league has limoges csp, and french basketball c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_and_fourth_tiers" (
"season" text,
"club" text,
"national_league" text,
"national_cup" text,
"european_cup" text
);
Question: What is the club that has the turkish basketball cup and fiba... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_and_fourth_tiers" (
"season" text,
"club" text,
"national_league" text,
"national_cup" text,
"european_cup" text
);
Question: What national cup has fc barcelona?
<|assistant|>
SELECT "nat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "available_processors" (
"series" text,
"model" text,
"cpu_clock_m_hz" text,
"cpu_cores" real,
"tdp_w" text,
"l2_cache_ki_b" text,
"radeon_cores" real,
"ddr3_speed" real
);
Question: Name ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "available_processors" (
"series" text,
"model" text,
"cpu_clock_m_hz" text,
"cpu_cores" real,
"tdp_w" text,
"l2_cache_ki_b" text,
"radeon_cores" real,
"ddr3_speed" real
);
Question: Name ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "available_processors" (
"series" text,
"model" text,
"cpu_clock_m_hz" text,
"cpu_cores" real,
"tdp_w" text,
"l2_cache_ki_b" text,
"radeon_cores" real,
"ddr3_speed" real
);
Question: Name ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: who lost on august 21?
<|assistant|>
SELECT "loss" FROM "game_log" WHERE "date"='august 21';<|end... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: On August 10, what was the record against the Expos?
<|assistant|>
SELECT "record" FROM "game_log... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the average laps for lorenzo bandini with a grid under 3?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What driver has under 53 laps, a grid smaller than 14, and a time/retired of diff... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacopetti_and_prosperi" (
"title" text,
"year" real,
"country" text,
"music" text,
"uncut_run_time" text
);
Question: What music is in the film with an Uncut run time of 95 minutes?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacopetti_and_prosperi" (
"title" text,
"year" real,
"country" text,
"music" text,
"uncut_run_time" text
);
Question: What country is the film that has music of nino oliviero?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacopetti_and_prosperi" (
"title" text,
"year" real,
"country" text,
"music" text,
"uncut_run_time" text
);
Question: What music is in the film before 1963?
<|assistant|>
SELECT "music" FROM "j... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.