text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team" text
);
Question: What round has mathieu garon as the player?
<|assistant|>
SELECT "r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team" text
);
Question: What nationality has a position of left wing, and a round greater t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team" text
);
Question: How many rounds have goalie as the position?
<|assistant|>
SELECT S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
Question: Which Competition has a Date of may 2, 1993?
<|assistant|>
SELECT "competition" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
Question: Which Result has a Goal larger than 6, and a Score of 1–0, and a Competition of fri... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the score on april 4, 1993?
<|assistant|>
SELECT "score" FROM "internation... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "deuces_wild" (
"hand" text,
"1_credit" text,
"2_credits" text,
"3_credits" text,
"4_credits" text,
"5_credits" text
);
Question: What is listed for the 3 credits that also has a 2 credits of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "deuces_wild" (
"hand" text,
"1_credit" text,
"2_credits" text,
"3_credits" text,
"4_credits" text,
"5_credits" text
);
Question: What's the listed Hand has 3 credits of 6?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "deuces_wild" (
"hand" text,
"1_credit" text,
"2_credits" text,
"3_credits" text,
"4_credits" text,
"5_credits" text
);
Question: What is listed for the 4 credits that has 5 credits of 125?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "deuces_wild" (
"hand" text,
"1_credit" text,
"2_credits" text,
"3_credits" text,
"4_credits" text,
"5_credits" text
);
Question: What is listed for 5 credits that has 1 credit of 300?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "deuces_wild" (
"hand" text,
"1_credit" text,
"2_credits" text,
"3_credits" text,
"4_credits" text,
"5_credits" text
);
Question: What's the 1 credit with a Hand of Theoretical Return?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "deuces_wild" (
"hand" text,
"1_credit" text,
"2_credits" text,
"3_credits" text,
"4_credits" text,
"5_credits" text
);
Question: What is listed for the Hand that has a 1 credit of 1?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "alabama" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" text,
"class" text,
"hometown" text,
"games" real
);
Question: What is the games number when the Position w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "alabama" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" text,
"class" text,
"hometown" text,
"games" real
);
Question: What is the number when the height shows 6'6... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "alabama" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" text,
"class" text,
"hometown" text,
"games" real
);
Question: What is the class for the position of lg?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2001_02_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... |
<|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,
"date" text,
"round" real,
"time" text,
"location" text
);
Question: What time is associated with t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_men_s_doubles_performance_tim" (
"tournament" text,
"1998" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_men_s_doubles_performance_tim" (
"tournament" text,
"1998" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_men_s_doubles_performance_tim" (
"tournament" text,
"1998" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_men_s_doubles_performance_tim" (
"tournament" text,
"1998" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_men_s_doubles_performance_tim" (
"tournament" text,
"1998" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_players_in_the_nfl" (
"player" text,
"position" text,
"round" real,
"pick" real,
"nfl_club" text
);
Question: What club is robert gallery a part of
<|assistant|>
SELECT "nfl_club" FROM "te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cintas_center" (
"season" text,
"record" text,
"pct" real,
"games" real,
"attendance" real,
"average" real,
"sellouts" real
);
Question: How many attendance numbers had more than 15 games, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cintas_center" (
"season" text,
"record" text,
"pct" real,
"games" real,
"attendance" real,
"average" real,
"sellouts" real
);
Question: What's the mean attendance number when the record is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cintas_center" (
"season" text,
"record" text,
"pct" real,
"games" real,
"attendance" real,
"average" real,
"sellouts" real
);
Question: What is the full amount of averages when the sellout... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_medalists" (
"medal" text,
"name" text,
"games" text,
"sport" text,
"event" text
);
Question: What medal was awarded in the men's freestyle 52 kg?
<|assistant|>
SELECT "medal" FROM "lis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: Events smaller than 1 had what highest cuts made?
<|assistant|>
SELECT MAX("cuts_made") FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_brasileiro_s_rie_c" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What position was pl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_brasileiro_s_rie_c" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: How many games lost ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_brasileiro_s_rie_c" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: How many games again... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "legislative_history" (
"congress" text,
"bill_number_s" text,
"date_introduced" text,
"sponsor_s" text,
"num_of_cosponsors" real,
"latest_status" text
);
Question: What Congress had less than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "legislative_history" (
"congress" text,
"bill_number_s" text,
"date_introduced" text,
"sponsor_s" text,
"num_of_cosponsors" real,
"latest_status" text
);
Question: Who sponsored the bill intr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "legislative_history" (
"congress" text,
"bill_number_s" text,
"date_introduced" text,
"sponsor_s" text,
"num_of_cosponsors" real,
"latest_status" text
);
Question: Who sponsored the bill that... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_12_6_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What is the Outcome of the Melbourne Tournament... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_12_6_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: In what Tournament was Janet Young a Partner?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_12_6_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What was the Outcome of the match with a Score ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"76ers_points" real,
"opponent_points" real,
"record" text,
"streak" text
);
Question: Which Date has a Result... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"76ers_points" real,
"opponent_points" real,
"record" text,
"streak" text
);
Question: Which Date has a Streak... |
<|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: Which school or club team has a pick of 139?
<|assistant|>
SELECT "school_club_team"... |
<|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: What is the pick number for the player playing tackle position, and a round less tha... |
<|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: Which school of club team has a pick of 46?
<|assistant|>
SELECT "school_club_team" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: Who got 59.486 for Qual 2?
<|assistant|>
SELECT "name" FROM "qualifying_results" WHERE "qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: Who got 59.578 for Qual 1?
<|assistant|>
SELECT "name" FROM "qualifying_results" WHERE "qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: What team was Andrew Ranger in?
<|assistant|>
SELECT "team" FROM "qualifying_results" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: What team has 59.372 for qual 1?
<|assistant|>
SELECT "team" FROM "qualifying_results" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: What did Alex Tagliani get for Qual 1?
<|assistant|>
SELECT "qual_1" FROM "qualifying_resu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What was the result of the game on November 7, 1999?
<|assistant|>
SELECT "result" FROM "sch... |
<|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: When was the game before week 15 with the result of bye?
<|assistant|>
SELECT "date" FROM "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "film" (
"year" real,
"title" text,
"director" text,
"writer" text,
"notes" text
);
Question: Who is the writer of Wallace & Gromit: A Close Shave, a short film from before 2008?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "film" (
"year" real,
"title" text,
"director" text,
"writer" text,
"notes" text
);
Question: What notes did the creature comforts film have?
<|assistant|>
SELECT "notes" FROM "film" WHERE "titl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "film" (
"year" real,
"title" text,
"director" text,
"writer" text,
"notes" text
);
Question: Who is the director of Wallace & Gromit: The Curse of the Were-Rabbit?
<|assistant|>
SELECT "directo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "film" (
"year" real,
"title" text,
"director" text,
"writer" text,
"notes" text
);
Question: What is the earliest year of Wallace & Gromit: The Curse of the Were-Rabbit?
<|assistant|>
SELECT MI... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"race" text,
"length" text,
"class" text,
"circuit" text,
"date" text
);
Question: what was the length of the game on may 19
<|assistant|>
SELECT "length" FROM "schedule" WHERE "dat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text
);
Question: March of 26 has what lowest game?
<|assistant|>
SELECT MIN("game") FROM "schedule_an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text
);
Question: March of 29 involves what highest scoring game?
<|assistant|>
SELECT MAX("game") FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text
);
Question: Game larger than 76, and a March larger than 26 involves what score?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What was the time when the laps were smaller than 66 and the grid was 15?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What was the grid for anthony davidson when the laps were less than 8?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: What team did carlos cardus drive for in 1983 when he got less th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: What is the sum of the points when Carlos drove for repsol honda ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: What is the average points won when Carlos had 0 wins?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: What is the highest year that Carlos drove for repsol honda and h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "castleford_tigers_career" (
"year" text,
"team" text,
"apps" real,
"tries" real,
"goals" real,
"points" real
);
Question: What is the total number of goals from 24 tries and 96 or greater poi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "castleford_tigers_career" (
"year" text,
"team" text,
"apps" real,
"tries" real,
"goals" real,
"points" real
);
Question: What year has tries less than 24 and 0 points?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
Question: What Game has a Location of Philadelphia Spectrum and an Opponent of New York ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
Question: What Game has a Location of Philadelphia Spectrum and a Date of April 1?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_15_2010" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: What is the segment for Netflix episo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_15_2010" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: What is the Netflix episode for serie... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_15_2010" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: What is the segment A for the episode... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
Question: What is the earliest year with fewer than 5 wins and 89 points?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
Question: When is the most recent year with more than 27 points and more than 5 wins?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
Question: What are the sum of points in 1989 with 0 wins?
<|assistant|>
SELECT SUM("points... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
Question: Which class has fewer than 89 points and the Honda team later than 1987?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
Question: How many points are there later than 1992?
<|assistant|>
SELECT COUNT("points") ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_in_sports" (
"date" text,
"event" text,
"location" text,
"attendance" text,
"ppv_buyrate" text
);
Question: Where was the event on June 10?
<|assistant|>
SELECT "location" FROM "2011_in_sp... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_in_sports" (
"date" text,
"event" text,
"location" text,
"attendance" text,
"ppv_buyrate" text
);
Question: What event was in New Orleans, Louisiana, USA?
<|assistant|>
SELECT "event" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_in_sports" (
"date" text,
"event" text,
"location" text,
"attendance" text,
"ppv_buyrate" text
);
Question: On September 10 during Strikeforce: Heavyweight Grand Prix Semifinals, what was ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: How many points are there on november 7?
<|assistant|>
SELECT MAX("poi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: What was the score in the game where the Blazers were t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: How many people attended the game that had the Clippers... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qwik_liner_las_vegas_350" (
"pos" real,
"car_num" real,
"driver" text,
"make" text,
"team" text
);
Question: Which team has a car # before 99, a Toyota, and is driven by Mike Skinner?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qwik_liner_las_vegas_350" (
"pos" real,
"car_num" real,
"driver" text,
"make" text,
"team" text
);
Question: What is the lowest position for driver Kyle Busch?
<|assistant|>
SELECT MIN("pos") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qwik_liner_las_vegas_350" (
"pos" real,
"car_num" real,
"driver" text,
"make" text,
"team" text
);
Question: Who is the team of the Chevrolet, and has a position less than 7, for car # 88?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "c_sar_awards" (
"year" real,
"group" text,
"award" text,
"film" text,
"result" text
);
Question: Which Film has a Result of nominated, and a Year of 2001?
<|assistant|>
SELECT "film" FROM "c_sa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "c_sar_awards" (
"year" real,
"group" text,
"award" text,
"film" text,
"result" text
);
Question: Which Award has a Group of césar awards, and a Result of nominated, and a Year larger than 2001,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "c_sar_awards" (
"year" real,
"group" text,
"award" text,
"film" text,
"result" text
);
Question: Which Year has a Group of césar awards, and a Result of nominated, and an Award of the best actr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "c_sar_awards" (
"year" real,
"group" text,
"award" text,
"film" text,
"result" text
);
Question: Which Award has a Result of nominated, and a Year of 2003?
<|assistant|>
SELECT "award" FROM "c_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "c_sar_awards" (
"year" real,
"group" text,
"award" text,
"film" text,
"result" text
);
Question: Which Result has a Year larger than 2003, and an Award of best supporting actress?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "voting_details" (
"constituency" text,
"electorate" real,
"turnout" text,
"spoilt" text,
"valid_poll" real,
"quota" text,
"seats" real,
"candidates" real
);
Question: Name the total numbe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "voting_details" (
"constituency" text,
"electorate" real,
"turnout" text,
"spoilt" text,
"valid_poll" real,
"quota" text,
"seats" real,
"candidates" real
);
Question: Name the least valid... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "voting_details" (
"constituency" text,
"electorate" real,
"turnout" text,
"spoilt" text,
"valid_poll" real,
"quota" text,
"seats" real,
"candidates" real
);
Question: Name the average val... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
Question: Which Catalog has a Format of 12" maxi, and a Region of france?
<|assistant|>
SELECT "cat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
Question: Which Label has a Format of 7" single, and a Date of 1988?
<|assistant|>
SELECT "label" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
Question: Which Label has a Region of germany, and a Format of 12" maxi?
<|assistant|>
SELECT "labe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
Question: Which Label has a Region of canada?
<|assistant|>
SELECT "label" FROM "release_history" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
Question: Which Date has a Catalog of 887 195-2, and a Format of cd maxi?
<|assistant|>
SELECT "dat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
Question: Which Date has a Region of france?
<|assistant|>
SELECT "date" FROM "release_history" WHE... |
<|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: Which Time has an Opponent of... |
<|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: Which Record has an Event of ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.