text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notation" (
"fraction" text,
"ellipsis" text,
"vinculum" text,
"dots" text,
"parentheses" text
);
Question: What is the value of vinculum for parentheses of 0.(6)?
<|assistant|>
SELECT "vinculum" FROM "notation" WHERE "parentheses"='0.(6)';<|endoftext|> |
<|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,
"attendance" real,
"record" text
);
Question: When was the score 7-1?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "score"='7-1';<|endoftext|> |
<|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,
"attendance" real,
"record" text
);
Question: What was the loss when the score was 7-1?
<|assistant|>
SELECT "loss" FROM "game_log" WHERE "score"='7-1';<|endoftext|> |
<|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,
"attendance" real,
"record" text
);
Question: What was the loss when the record was 46-59?
<|assistant|>
SELECT "loss" FROM "game_log" WHERE "record"='46-59';<|endoftext|> |
<|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,
"attendance" real,
"record" text
);
Question: Opponent of @ giants, and a Record of 8–12 had what score?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "opponent"='@ giants' AND "record"='8–12';<|endoftext|> |
<|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,
"attendance" real,
"record" text
);
Question: Score of 4–0 had what attendance number?
<|assistant|>
SELECT COUNT("attendance") FROM "game_log" WHERE "score"='4–0';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_2010_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_bonus" text,
"points" text
);
Question: What was the losing bonus for the team with a try bonus of 3 and 47 tries for?
<|assistant|>
SELECT "losing_bonus" FROM "2009_2010_table" WHERE "try_bonus"='3' AND "tries_for"='47';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_2010_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_bonus" text,
"points" text
);
Question: How many tries for does the team with 263 points against have?
<|assistant|>
SELECT "tries_for" FROM "2009_2010_table" WHERE "points_against"='263';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_2010_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_bonus" text,
"points" text
);
Question: How many draws does the team with 385 points for have?
<|assistant|>
SELECT "drawn" FROM "2009_2010_table" WHERE "points_for"='385';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_2010_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_bonus" text,
"points" text
);
Question: What is the number of losses for the team with 1 draw and 34 tries against?
<|assistant|>
SELECT "lost" FROM "2009_2010_table" WHERE "drawn"='1' AND "tries_against"='34';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_2010_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_bonus" text,
"points" text
);
Question: How many tries for does the team with a try bonus of 1 and 35 points earned?
<|assistant|>
SELECT "tries_for" FROM "2009_2010_table" WHERE "points"='35' AND "try_bonus"='1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_2010_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_bonus" text,
"points" text
);
Question: How many points does the team with 3 losses have?
<|assistant|>
SELECT "points" FROM "2009_2010_table" WHERE "lost"='3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "zakopane" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"points" real,
"overall_wc_points_rank" text
);
Question: Which Rank is the lowest one that has a 1st (m) larger than 133.5, and an Overall WC points (Rank) of 459 (7)?
<|assistant|>
SELECT MIN("rank") FROM "zakopane" WHERE "1st_m">133.5 AND "overall_wc_points_rank"='459 (7)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
Question: What was the score in the game where the record was 10-9-7?
<|assistant|>
SELECT "score" FROM "schedule_and_results" WHERE "record"='10-9-7';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
Question: What was the first time in December they played the Colorado Avalanche?
<|assistant|>
SELECT MIN("december") FROM "schedule_and_results" WHERE "opponent"='colorado avalanche';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1970s_jets_12_8" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
);
Question: What date was the winner the new york jets and a Result of 30–28?
<|assistant|>
SELECT "date" FROM "1970s_jets_12_8" WHERE "winner"='new york jets' AND "result"='30–28';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1970s_jets_12_8" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
);
Question: What is the name of the location of the game with a Result of 21–16?
<|assistant|>
SELECT "location" FROM "1970s_jets_12_8" WHERE "result"='21–16';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1970s_jets_12_8" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
);
Question: What is the earliest year the new york jets won at harvard stadium?
<|assistant|>
SELECT MIN("year") FROM "1970s_jets_12_8" WHERE "winner"='new york jets' AND "location"='harvard stadium';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1970s_jets_12_8" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
);
Question: Who lost at schaefer stadium when the Winner was new england patriots, and a Date of october 18?
<|assistant|>
SELECT "loser" FROM "1970s_jets_12_8" WHERE "location"='schaefer stadium' AND "winner"='new england patriots' AND "date"='october 18';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_09_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_bonus" text,
"points" text
);
Question: How many points did the club with a losing bonus of 2 and 300 points against have?
<|assistant|>
SELECT "points_for" FROM "2008_09_table" WHERE "losing_bonus"='2' AND "points_against"='300';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_09_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_bonus" text,
"points" text
);
Question: How many tries for did the club with a 3 losing bonus and 45 points have?
<|assistant|>
SELECT "tries_for" FROM "2008_09_table" WHERE "losing_bonus"='3' AND "points"='45';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_09_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_bonus" text,
"points" text
);
Question: What is the try bonus of the club with played?
<|assistant|>
SELECT "try_bonus" FROM "2008_09_table" WHERE "played"='played';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_09_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_bonus" text,
"points" text
);
Question: How many points against did the club with points have?
<|assistant|>
SELECT "points_against" FROM "2008_09_table" WHERE "points"='points';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_09_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_bonus" text,
"points" text
);
Question: What is the drawn by the club with 542 points against?
<|assistant|>
SELECT "drawn" FROM "2008_09_table" WHERE "points_against"='542';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_09_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_bonus" text,
"points" text
);
Question: How many losses did the club with 22 played and 334 points against have?
<|assistant|>
SELECT "lost" FROM "2008_09_table" WHERE "played"='22' AND "points_against"='334';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"record" text,
"venue" text,
"attendance" real
);
Question: What attendance does 1-6 record have?
<|assistant|>
SELECT SUM("attendance") FROM "schedule" WHERE "record"='1-6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"record" text,
"venue" text,
"attendance" real
);
Question: What is the record of Tampa Bay Buccaneers?
<|assistant|>
SELECT "record" FROM "schedule" WHERE "opponent"='tampa bay buccaneers';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What Nationality has a Position of right wing, with a #20 pick?
<|assistant|>
SELECT "nationality" FROM "round_two" WHERE "position"='right wing' AND "pick_num"='20';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What College/junior/club team has a Position of centre, and pick is #22?
<|assistant|>
SELECT "college_junior_club_team" FROM "round_two" WHERE "position"='centre' AND "pick_num"='22';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What is the NHL team that had pick number 32?
<|assistant|>
SELECT "nhl_team" FROM "round_two" WHERE "pick_num"='32';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What is the Pick # for the College/junior/club team of edmonton oil kings (wchl), and the position if defence?
<|assistant|>
SELECT "pick_num" FROM "round_two" WHERE "college_junior_club_team"='edmonton oil kings (wchl)' AND "position"='defence';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What is the name of the Player that shows the NHL team of new york rangers, and a Pick # of 31?
<|assistant|>
SELECT "player" FROM "round_two" WHERE "nhl_team"='new york rangers' AND "pick_num"='31';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "participating_teams" (
"pos_in_2007" text,
"club" text,
"city" text,
"best_position" text,
"seasons_in_league" real
);
Question: Which sum of Seasons in league has a Best Position of 5th (2007)?
<|assistant|>
SELECT SUM("seasons_in_league") FROM "participating_teams" WHERE "best_position"='5th (2007)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "participating_teams" (
"pos_in_2007" text,
"club" text,
"city" text,
"best_position" text,
"seasons_in_league" real
);
Question: Which City has Seasons in league of 17, and a Club of shakhter?
<|assistant|>
SELECT "city" FROM "participating_teams" WHERE "seasons_in_league"=17 AND "club"='shakhter';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "champions" (
"season" real,
"driver" text,
"team" text,
"tyre" text,
"points" real
);
Question: What team won after 2008?
<|assistant|>
SELECT "team" FROM "champions" WHERE "season">2008;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "champions" (
"season" real,
"driver" text,
"team" text,
"tyre" text,
"points" real
);
Question: What team has fewer than 203 points?
<|assistant|>
SELECT "team" FROM "champions" WHERE "points"<203;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "champions" (
"season" real,
"driver" text,
"team" text,
"tyre" text,
"points" real
);
Question: What is total amount of points for the 2007 season?
<|assistant|>
SELECT SUM("points") FROM "champions" WHERE "season"=2007;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "champions" (
"season" real,
"driver" text,
"team" text,
"tyre" text,
"points" real
);
Question: Who is the driver for team Collé Racing with more than 206 points?
<|assistant|>
SELECT "driver" FROM "champions" WHERE "team"='collé racing' AND "points">206;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_3" (
"couple" text,
"score" text,
"style" text,
"music" text,
"result" text
);
Question: What was the result when the couple was steve & anna?
<|assistant|>
SELECT "result" FROM "week_3" WHERE "couple"='steve & anna';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_3" (
"couple" text,
"score" text,
"style" text,
"music" text,
"result" text
);
Question: What was the score when the couple was shannon & derek?
<|assistant|>
SELECT "score" FROM "week_3" WHERE "couple"='shannon & derek';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_3" (
"couple" text,
"score" text,
"style" text,
"music" text,
"result" text
);
Question: What music did Mario & Karina perform?
<|assistant|>
SELECT "music" FROM "week_3" WHERE "couple"='mario & karina';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_3" (
"couple" text,
"score" text,
"style" text,
"music" text,
"result" text
);
Question: What was the result for Steve & Anna when the score was 21 (7, 7, 7)?
<|assistant|>
SELECT "result" FROM "week_3" WHERE "score"='21 (7, 7, 7)' AND "couple"='steve & anna';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_3" (
"couple" text,
"score" text,
"style" text,
"music" text,
"result" text
);
Question: What was the result when the score was 21 (7, 6, 8)?
<|assistant|>
SELECT "result" FROM "week_3" WHERE "score"='21 (7, 6, 8)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
Question: Which Home has an Attendance larger than 17,250, and Points of 14?
<|assistant|>
SELECT "home" FROM "game_log" WHERE "attendance">'17,250' AND "points"=14;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
Question: Which Points have a Score of 3–3, and a Date of november 11?
<|assistant|>
SELECT "points" FROM "game_log" WHERE "score"='3–3' AND "date"='november 11';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
Question: Which Date has a Home of pittsburgh, and a Record of 3–6–5?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "home"='pittsburgh' AND "record"='3–6–5';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
Question: Which Record has a Score of 4–4, and Points of 17?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "score"='4–4' AND "points"=17;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b" (
"pos" real,
"matches" real,
"wins" real,
"loses" real,
"results" text,
"points" real,
"diff" text
);
Question: What's the highest Loses, with Wins that's larger than 3 and a Pos. Larger than 3?
<|assistant|>
SELECT MAX("loses") FROM "group_b" WHERE "wins">3 AND "pos">3;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which Rank has a Bronze larger than 1, and a Silver larger than 0, and a Nation of norway (host nation), and a Total larger than 16?
<|assistant|>
SELECT COUNT("rank") FROM "medal_count" WHERE "bronze">1 AND "silver">0 AND "nation"='norway (host nation)' AND "total">16;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which Bronze has a Total of 11, and a Silver smaller than 6?
<|assistant|>
SELECT MAX("bronze") FROM "medal_count" WHERE "total"=11 AND "silver"<6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which Bronze has a Nation of canada, and a Rank smaller than 6?
<|assistant|>
SELECT AVG("bronze") FROM "medal_count" WHERE "nation"='canada' AND "rank"<6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which Gold has a Bronze larger than 6?
<|assistant|>
SELECT MIN("gold") FROM "medal_count" WHERE "bronze">6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which Gold has a Rank larger than 6, and a Nation of netherlands, and a Bronze smaller than 0?
<|assistant|>
SELECT SUM("gold") FROM "medal_count" WHERE "rank">6 AND "nation"='netherlands' AND "bronze"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "spartana" (
"name" text,
"capacity" text,
"power" text,
"type" text,
"torque" text
);
Question: What is the torque of the 1.6 petrol with daewoo power?
<|assistant|>
SELECT "torque" FROM "spartana" WHERE "name"='1.6 petrol' AND "power"='daewoo';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "spartana" (
"name" text,
"capacity" text,
"power" text,
"type" text,
"torque" text
);
Question: What is the torque of 1.2 petrol?
<|assistant|>
SELECT "torque" FROM "spartana" WHERE "name"='1.2 petrol';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "spartana" (
"name" text,
"capacity" text,
"power" text,
"type" text,
"torque" text
);
Question: What is the power of 1.9 diesel?
<|assistant|>
SELECT "power" FROM "spartana" WHERE "name"='1.9 diesel';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schema_of_the_quadrangles" (
"name" text,
"number" text,
"namesake" text,
"albedo_feature_name" text,
"area" text,
"current_map" text
);
Question: What is the current map designation of the feature for which derain crater was the namesake?
<|assistant|>
SELECT "current_map" FROM "schema_of_the_quadrangles" WHERE "namesake"='derain crater';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schema_of_the_quadrangles" (
"name" text,
"number" text,
"namesake" text,
"albedo_feature_name" text,
"area" text,
"current_map" text
);
Question: What is the Albedo name for Neruda?
<|assistant|>
SELECT "albedo_feature_name" FROM "schema_of_the_quadrangles" WHERE "name"='neruda';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schema_of_the_quadrangles" (
"name" text,
"number" text,
"namesake" text,
"albedo_feature_name" text,
"area" text,
"current_map" text
);
Question: What number is Kuiper?
<|assistant|>
SELECT "number" FROM "schema_of_the_quadrangles" WHERE "name"='kuiper';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schema_of_the_quadrangles" (
"name" text,
"number" text,
"namesake" text,
"albedo_feature_name" text,
"area" text,
"current_map" text
);
Question: What is the current map designation of the feature which was named for discovery rupes?
<|assistant|>
SELECT "current_map" FROM "schema_of_the_quadrangles" WHERE "namesake"='discovery rupes';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schema_of_the_quadrangles" (
"name" text,
"number" text,
"namesake" text,
"albedo_feature_name" text,
"area" text,
"current_map" text
);
Question: What is the current map designation for Debussy?
<|assistant|>
SELECT "current_map" FROM "schema_of_the_quadrangles" WHERE "name"='debussy';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schema_of_the_quadrangles" (
"name" text,
"number" text,
"namesake" text,
"albedo_feature_name" text,
"area" text,
"current_map" text
);
Question: What is the current map designation for Beethoven?
<|assistant|>
SELECT "current_map" FROM "schema_of_the_quadrangles" WHERE "name"='beethoven';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bischofshofen" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_fht_points" text,
"overall_wc_points_rank" text
);
Question: What is the overall FHT points for Denis Kornilov?
<|assistant|>
SELECT "overall_fht_points" FROM "bischofshofen" WHERE "name"='denis kornilov';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bischofshofen" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_fht_points" text,
"overall_wc_points_rank" text
);
Question: What is the lowest 2nd (m) when the points were larger than 251.6?
<|assistant|>
SELECT MIN("2nd_m") FROM "bischofshofen" WHERE "points">251.6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "approved" (
"rank" real,
"name" text,
"height_m_ft" text,
"floors" real,
"year_est" text,
"city" text
);
Question: What city ranked 7?
<|assistant|>
SELECT "city" FROM "approved" WHERE "rank"=7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "approved" (
"rank" real,
"name" text,
"height_m_ft" text,
"floors" real,
"year_est" text,
"city" text
);
Question: How many floors were there with a building rank of less than 3 and a height of 300 / 985 m (ft)?
<|assistant|>
SELECT COUNT("floors") FROM "approved" WHERE "height_m_ft"='300 / 985' AND "rank"<3;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "approved" (
"rank" real,
"name" text,
"height_m_ft" text,
"floors" real,
"year_est" text,
"city" text
);
Question: What is the rank of Etihad Tower 5, with less than 62 floors?
<|assistant|>
SELECT MIN("rank") FROM "approved" WHERE "floors"<62 AND "name"='etihad tower 5';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "approved" (
"rank" real,
"name" text,
"height_m_ft" text,
"floors" real,
"year_est" text,
"city" text
);
Question: What city has a building ranked greater than 15 with floors greater than 43?
<|assistant|>
SELECT "city" FROM "approved" WHERE "rank">15 AND "floors">43;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_teams" (
"club" text,
"sport" text,
"league" text,
"venue" text,
"championships" real,
"years_active" text
);
Question: Which league is for baseball with Laredo Apaches?
<|assistant|>
SELECT "league" FROM "defunct_teams" WHERE "sport"='baseball' AND "club"='laredo apaches';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_teams" (
"club" text,
"sport" text,
"league" text,
"venue" text,
"championships" real,
"years_active" text
);
Question: Which league has arena football in the club Laredo Lobos?
<|assistant|>
SELECT "league" FROM "defunct_teams" WHERE "sport"='arena football' AND "club"='laredo lobos';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_summary" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text,
"tv_time" text
);
Question: Which was the home team for game 3?
<|assistant|>
SELECT "home_team" FROM "series_summary" WHERE "game"='game 3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_summary" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text,
"tv_time" text
);
Question: What was the TV time for Chicago's road game against Phoenix on June 18?
<|assistant|>
SELECT "tv_time" FROM "series_summary" WHERE "road_team"='phoenix' AND "date"='june 18';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_summary" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text,
"tv_time" text
);
Question: What was the TV time for the road game against Phoenix where the score was 98-99?
<|assistant|>
SELECT "tv_time" FROM "series_summary" WHERE "home_team"='phoenix' AND "result"='98-99';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_summary" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text,
"tv_time" text
);
Question: Who was the home team on June 9?
<|assistant|>
SELECT "home_team" FROM "series_summary" WHERE "date"='june 9';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_summary" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text,
"tv_time" text
);
Question: What was the TV time for the game on June 9?
<|assistant|>
SELECT "tv_time" FROM "series_summary" WHERE "date"='june 9';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_professional_sports_teams_in_the" (
"conference" text,
"division" text,
"team" text,
"city" text,
"home_stadium" text
);
Question: At which Conference was the Division in the East, and the Home Stadium named fedexfield?
<|assistant|>
SELECT "conference" FROM "list_of_professional_sports_teams_in_the" WHERE "division"='east' AND "home_stadium"='fedexfield';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_professional_sports_teams_in_the" (
"conference" text,
"division" text,
"team" text,
"city" text,
"home_stadium" text
);
Question: What is the name of the Home Stadium in which the Division is in the south, and Conference is national, as well as being in the city named charlotte, North Carolina?
<|assistant|>
SELECT "home_stadium" FROM "list_of_professional_sports_teams_in_the" WHERE "division"='south' AND "conference"='national' AND "city"='charlotte, north carolina';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_professional_sports_teams_in_the" (
"conference" text,
"division" text,
"team" text,
"city" text,
"home_stadium" text
);
Question: Which Home Stadium has American as its Conference as well as nashville, tennessee as the city?
<|assistant|>
SELECT "home_stadium" FROM "list_of_professional_sports_teams_in_the" WHERE "conference"='american' AND "city"='nashville, tennessee';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_professional_sports_teams_in_the" (
"conference" text,
"division" text,
"team" text,
"city" text,
"home_stadium" text
);
Question: What is the name of the Conference which Division is south, and the Home Stadium is georgia dome?
<|assistant|>
SELECT "conference" FROM "list_of_professional_sports_teams_in_the" WHERE "division"='south' AND "home_stadium"='georgia dome';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_professional_sports_teams_in_the" (
"conference" text,
"division" text,
"team" text,
"city" text,
"home_stadium" text
);
Question: Which Division does the City being jacksonville, florida belong to?
<|assistant|>
SELECT "division" FROM "list_of_professional_sports_teams_in_the" WHERE "city"='jacksonville, florida';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: Who won Women's doubles when Raina Tzvetkova won women's singles before 2000?
<|assistant|>
SELECT "women_s_doubles" FROM "past_winners" WHERE "year"<2000 AND "women_s_singles"='raina tzvetkova';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: Who won men's singles when petya nedelcheva diana dimova won women's doubles and vladimir metodiev krasimir yankov won men's doubles?
<|assistant|>
SELECT "men_s_singles" FROM "past_winners" WHERE "women_s_doubles"='petya nedelcheva diana dimova' AND "men_s_doubles"='vladimir metodiev krasimir yankov';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: Who won men's singles when petya nedelcheva won women's singles, petya nedelcheva diana dimova won women's doubles, stilian makarski diana dimova won mixed doubles, and stilian makarski peyo boichinov won men's doubles?
<|assistant|>
SELECT "men_s_singles" FROM "past_winners" WHERE "women_s_singles"='petya nedelcheva' AND "women_s_doubles"='petya nedelcheva diana dimova' AND "mixed_doubles"='stilian makarski diana dimova' AND "men_s_doubles"='stilian makarski peyo boichinov';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: Who won women's singles in 1986?
<|assistant|>
SELECT "women_s_singles" FROM "past_winners" WHERE "year"=1986;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"score" text,
"record" text,
"television" text
);
Question: What score has 1/22 as the date?
<|assistant|>
SELECT "score" FROM "schedule" WHERE "date"='1/22';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"score" text,
"record" text,
"television" text
);
Question: What score has 12/1 as the date?
<|assistant|>
SELECT "score" FROM "schedule" WHERE "date"='12/1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_source_code_editors" (
"editor" text,
"site" text,
"style_clone_of" text,
"cost_us" text,
"open_source" text,
"activity" text
);
Question: Which source has a Cost free, and an Activity of some, and an Editor of markitup?
<|assistant|>
SELECT "open_source" FROM "list_of_source_code_editors" WHERE "cost_us"='free' AND "activity"='some' AND "editor"='markitup';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_source_code_editors" (
"editor" text,
"site" text,
"style_clone_of" text,
"cost_us" text,
"open_source" text,
"activity" text
);
Question: Which site has a Cost free and a Editor of jsvi?
<|assistant|>
SELECT "site" FROM "list_of_source_code_editors" WHERE "cost_us"='free' AND "editor"='jsvi';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_source_code_editors" (
"editor" text,
"site" text,
"style_clone_of" text,
"cost_us" text,
"open_source" text,
"activity" text
);
Question: What is the cost of an Open Source that is no?
<|assistant|>
SELECT "cost_us" FROM "list_of_source_code_editors" WHERE "open_source"='no';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_07_season_as_a_five_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" real,
"jockey" text,
"winner_2nd" text
);
Question: What venue has a weight (kg) greater than 55, and won as the result?
<|assistant|>
SELECT "venue" FROM "2006_07_season_as_a_five_year_old" WHERE "weight_kg">55 AND "result"='won';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_07_season_as_a_five_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" real,
"jockey" text,
"winner_2nd" text
);
Question: Which group has a weight (kg) less than 55?
<|assistant|>
SELECT "group" FROM "2006_07_season_as_a_five_year_old" WHERE "weight_kg"<55;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" real,
"mls_team" text,
"player" text,
"position" text,
"affiliation" text
);
Question: Which position has 45 picks?
<|assistant|>
SELECT "position" FROM "round_four" WHERE "pick_num"=45;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" text
);
Question: What is the record of the game before week 5 and a bye game site?
<|assistant|>
SELECT "record" FROM "schedule" WHERE "week"<5 AND "game_site"='bye';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "percentage_pole_positions" (
"driver" text,
"seasons" text,
"entries" real,
"poles" real,
"percentage" text
);
Question: Which Seasons have Entries larger than 52, and Poles of 33?
<|assistant|>
SELECT "seasons" FROM "percentage_pole_positions" WHERE "entries">52 AND "poles"=33;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "percentage_pole_positions" (
"driver" text,
"seasons" text,
"entries" real,
"poles" real,
"percentage" text
);
Question: Which Seasons have a Poles larger than 29, and Entries larger than 191?
<|assistant|>
SELECT "seasons" FROM "percentage_pole_positions" WHERE "poles">29 AND "entries">191;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matches_in_europe" (
"competition" text,
"round" text,
"opposition" text,
"home_leg" text,
"away_leg" text
);
Question: What ist the Away Leg with an Opposition that is aarhus gymnastik forening?
<|assistant|>
SELECT "away_leg" FROM "matches_in_europe" WHERE "opposition"='aarhus gymnastik forening';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_statistics" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: What 2007 has 236 for 2006?
<|assistant|>
SELECT "2007" FROM "doubles_statistics" WHERE "2006"='236';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_statistics" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: What 2011 has 2r as 2010, and a 2008 of A?
<|assistant|>
SELECT "2011" FROM "doubles_statistics" WHERE "2010"='2r' AND "2008"='a';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_statistics" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: What is the 2012 that has tournament played as the tournament?
<|assistant|>
SELECT "2012" FROM "doubles_statistics" WHERE "tournament"='tournament played';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_1" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" real
);
Question: Which artist had a place larger than 1 with 229 points?
<|assistant|>
SELECT "artist" FROM "semifinal_1" WHERE "place">1 AND "points"=229;<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.