text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_18" (
"year" text,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: What was the winning score of the Masters Tournament?
<|assistant|>
SELECT "winning_score" FROM "wins_18" WHERE "championship"='Masters Tournament';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_18" (
"year" text,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: What was the winning score of the PGA Championship (3)?
<|assistant|>
SELECT "winning_score" FROM "wins_18" WHERE "championship"='PGA Championship (3)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_career_summary" (
"year" real,
"starts" real,
"wins_majors" text,
"2nd" real,
"3rd" real,
"earnings" real,
"money_list_rank" text,
"scoring_average" text
);
Question: What is the number of starts for 1987?
<|assistant|>
SELECT COUNT("starts") FROM "pga_tour_career_summary" WHERE "year"=1987;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_career_summary" (
"year" real,
"starts" real,
"wins_majors" text,
"2nd" real,
"3rd" real,
"earnings" real,
"money_list_rank" text,
"scoring_average" text
);
Question: What is the scoring aerage for 111419?
<|assistant|>
SELECT "scoring_average" FROM "pga_tour_career_summary" WHERE "earnings"=111419;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_career_summary" (
"year" real,
"starts" real,
"wins_majors" text,
"2nd" real,
"3rd" real,
"earnings" real,
"money_list_rank" text,
"scoring_average" text
);
Question: What is the money list rank for 1966?
<|assistant|>
SELECT "money_list_rank" FROM "pga_tour_career_summary" WHERE "year"=1966;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_career_summary" (
"year" real,
"starts" real,
"wins_majors" text,
"2nd" real,
"3rd" real,
"earnings" real,
"money_list_rank" text,
"scoring_average" text
);
Question: Name the total number of scoring average for money list rank of 174
<|assistant|>
SELECT COUNT("scoring_average") FROM "pga_tour_career_summary" WHERE "money_list_rank"='174';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real
);
Question: What is the county where kerry# is 59740?
<|assistant|>
SELECT "county" FROM "by_county" WHERE "kerrynum"=59740;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real
);
Question: In cook county Kerry# is?
<|assistant|>
SELECT "kerrynum" FROM "by_county" WHERE "county"='Cook';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real
);
Question: When bush# is 3907, what is Kerry#?
<|assistant|>
SELECT "kerrynum" FROM "by_county" WHERE "bushnum"=3907;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real
);
Question: What is the others# when bush% is 57.0%?
<|assistant|>
SELECT MAX("othersnum") FROM "by_county" WHERE "bushpct"='57.0%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_13036251_1" (
"season" text,
"airdate" text,
"the_mole" text,
"winner" text,
"runner_up" text,
"prize_money" text,
"international_destination" text
);
Question: what's the mole with airdate being 8 january 2009
<|assistant|>
SELECT "the_mole" FROM "table1_13036251_1" WHERE "airdate"='8 January 2009';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_13036251_1" (
"season" text,
"airdate" text,
"the_mole" text,
"winner" text,
"runner_up" text,
"prize_money" text,
"international_destination" text
);
Question: what's the mole with prize money being €24,475
<|assistant|>
SELECT "the_mole" FROM "table1_13036251_1" WHERE "prize_money"='€24,475';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_13036251_1" (
"season" text,
"airdate" text,
"the_mole" text,
"winner" text,
"runner_up" text,
"prize_money" text,
"international_destination" text
);
Question: what's the the mole with airdate being 5 january 2012
<|assistant|>
SELECT COUNT("the_mole") FROM "table1_13036251_1" WHERE "airdate"='5 January 2012';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_13036251_1" (
"season" text,
"airdate" text,
"the_mole" text,
"winner" text,
"runner_up" text,
"prize_money" text,
"international_destination" text
);
Question: what's airdate with international destination being scotland
<|assistant|>
SELECT "airdate" FROM "table1_13036251_1" WHERE "international_destination"='Scotland';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_13036251_1" (
"season" text,
"airdate" text,
"the_mole" text,
"winner" text,
"runner_up" text,
"prize_money" text,
"international_destination" text
);
Question: what's the mole with winner being frédérique huydts
<|assistant|>
SELECT "the_mole" FROM "table1_13036251_1" WHERE "winner"='Frédérique Huydts';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_13036251_1" (
"season" text,
"airdate" text,
"the_mole" text,
"winner" text,
"runner_up" text,
"prize_money" text,
"international_destination" text
);
Question: what's runner-up with season being season 13
<|assistant|>
SELECT "runner_up" FROM "table1_13036251_1" WHERE "season"='Season 13';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real
);
Question: In what county did 29231 people vote for Kerry?
<|assistant|>
SELECT "county" FROM "by_county" WHERE "kerrynum"=29231;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real
);
Question: What's the name of the county where 48.3% voted for Bush?
<|assistant|>
SELECT "county" FROM "by_county" WHERE "bushpct"='48.3%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real
);
Question: What's the percentage of votes for other candidates in the county where Bush got 51.6% of the votes?
<|assistant|>
SELECT "otherspct" FROM "by_county" WHERE "bushpct"='51.6%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real
);
Question: What's the name of the county where 54.6% voted for Bush?
<|assistant|>
SELECT "county" FROM "by_county" WHERE "bushpct"='54.6%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world" (
"year" real,
"points" text,
"rebounds" text,
"assists" text,
"steals" text,
"blocks" text
);
Question: What is the number of steals for 2012
<|assistant|>
SELECT COUNT("steals") FROM "world" WHERE "year"=2012;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "usa" (
"year" real,
"points" text,
"rebounds" text,
"assists" text,
"steals" text,
"blocks" text
);
Question: Who are the blockers where points are scored by Zach Randolph (24)?
<|assistant|>
SELECT "blocks" FROM "usa" WHERE "points"='Zach Randolph (24)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "usa" (
"year" real,
"points" text,
"rebounds" text,
"assists" text,
"steals" text,
"blocks" text
);
Question: Who are the blockers where points are scored by Zach Randolph (24)?
<|assistant|>
SELECT "blocks" FROM "usa" WHERE "points"='Zach Randolph (24)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "usa" (
"year" real,
"points" text,
"rebounds" text,
"assists" text,
"steals" text,
"blocks" text
);
Question: How many rebounds were there in 2008?
<|assistant|>
SELECT COUNT("rebounds") FROM "usa" WHERE "year"=2008;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "usa" (
"year" real,
"points" text,
"rebounds" text,
"assists" text,
"steals" text,
"blocks" text
);
Question: Who had all of the blocks in 2012?
<|assistant|>
SELECT "blocks" FROM "usa" WHERE "year"=2012;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "usa" (
"year" real,
"points" text,
"rebounds" text,
"assists" text,
"steals" text,
"blocks" text
);
Question: What year has Nerlens Noel (4) as blocker?
<|assistant|>
SELECT MIN("year") FROM "usa" WHERE "blocks"='Nerlens Noel (4)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "percussion_scholastic_concert_world_clas" (
"ensemble" text,
"gold_medals" real,
"silver_medals" real,
"bronze_medals" real,
"total_medals" real
);
Question: What is the most silver medals?
<|assistant|>
SELECT MAX("silver_medals") FROM "percussion_scholastic_concert_world_clas";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "percussion_scholastic_concert_world_clas" (
"ensemble" text,
"gold_medals" real,
"silver_medals" real,
"bronze_medals" real,
"total_medals" real
);
Question: what are all the gold medals when the silver medals is smaller than 1.0?
<|assistant|>
SELECT "gold_medals" FROM "percussion_scholastic_concert_world_clas" WHERE "silver_medals"<1.0;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "percussion_scholastic_concert_open_class" (
"ensemble" text,
"gold_medals" real,
"silver_medals" real,
"bronze_medals" real,
"total_medals" real
);
Question: How many numbers were listed under Silver Medals for Portsmouth HS?
<|assistant|>
SELECT COUNT("silver_medals") FROM "percussion_scholastic_concert_open_class" WHERE "ensemble"='Portsmouth HS';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "percussion_scholastic_concert_open_class" (
"ensemble" text,
"gold_medals" real,
"silver_medals" real,
"bronze_medals" real,
"total_medals" real
);
Question: What was the smallest total number of medals?
<|assistant|>
SELECT MIN("total_medals") FROM "percussion_scholastic_concert_open_class";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "percussion_scholastic_concert_open_class" (
"ensemble" text,
"gold_medals" real,
"silver_medals" real,
"bronze_medals" real,
"total_medals" real
);
Question: What is the highest number of gold medals Naugatuck HS won?
<|assistant|>
SELECT MAX("gold_medals") FROM "percussion_scholastic_concert_open_class" WHERE "ensemble"='Naugatuck HS';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"round" real,
"circuit" text,
"date" text,
"length" text,
"pole_position" text,
"gt3_winner" text,
"gtc_winner" text
);
Question: what is the maximum round for gt3 winner hector lester tim mullen and pole position of jonny cocker paul drayson
<|assistant|>
SELECT MAX("round") FROM "calendar" WHERE "gt3_winner"='Hector Lester Tim Mullen' AND "pole_position"='Jonny Cocker Paul Drayson';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"round" real,
"circuit" text,
"date" text,
"length" text,
"pole_position" text,
"gt3_winner" text,
"gtc_winner" text
);
Question: what are all the date for gt3 winner oliver bryant matt harris
<|assistant|>
SELECT "date" FROM "calendar" WHERE "gt3_winner"='Oliver Bryant Matt Harris';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"round" real,
"circuit" text,
"date" text,
"length" text,
"pole_position" text,
"gt3_winner" text,
"gtc_winner" text
);
Question: what are all the date for gtc winners graeme mundy jamie smyth and gt3 winners hector lester tim mullen
<|assistant|>
SELECT "date" FROM "calendar" WHERE "gtc_winner"='Graeme Mundy Jamie Smyth' AND "gt3_winner"='Hector Lester Tim Mullen';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"round" real,
"circuit" text,
"date" text,
"length" text,
"pole_position" text,
"gt3_winner" text,
"gtc_winner" text
);
Question: what are all the circuit for 9 september and gt3 winner hector lester allan simonsen
<|assistant|>
SELECT "circuit" FROM "calendar" WHERE "date"='9 September' AND "gt3_winner"='Hector Lester Allan Simonsen';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"round" real,
"circuit" text,
"date" text,
"length" text,
"pole_position" text,
"gt3_winner" text,
"gtc_winner" text
);
Question: what are all the circuit for gtc winner graeme mundy jamie smyth and pole position bradley ellis alex mortimer
<|assistant|>
SELECT "circuit" FROM "calendar" WHERE "gtc_winner"='Graeme Mundy Jamie Smyth' AND "pole_position"='Bradley Ellis Alex Mortimer';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"round" real,
"circuit" text,
"date" text,
"length" text,
"pole_position" text,
"gt3_winner" text,
"gtc_winner" text
);
Question: what are all the gtc winners for pole position no. 21 team modena
<|assistant|>
SELECT "gtc_winner" FROM "calendar" WHERE "pole_position"='No. 21 Team Modena';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1307572_1" (
"value" text,
"diameter" text,
"thickness" text,
"mass" text,
"composition" text,
"edge" text,
"obverse" text,
"reverse" text,
"first_minting" real,
"issue" text,
"withdrawal" text,
"lapse" text
);
Question: What material is made with a rounded, plain edge?
<|assistant|>
SELECT "composition" FROM "table1_1307572_1" WHERE "edge"='Rounded, plain';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1307572_1" (
"value" text,
"diameter" text,
"thickness" text,
"mass" text,
"composition" text,
"edge" text,
"obverse" text,
"reverse" text,
"first_minting" real,
"issue" text,
"withdrawal" text,
"lapse" text
);
Question: How many coins have a diameter of 23mm?
<|assistant|>
SELECT COUNT("reverse") FROM "table1_1307572_1" WHERE "diameter"='23mm';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1307572_1" (
"value" text,
"diameter" text,
"thickness" text,
"mass" text,
"composition" text,
"edge" text,
"obverse" text,
"reverse" text,
"first_minting" real,
"issue" text,
"withdrawal" text,
"lapse" text
);
Question: When was the coin with the mass of 3.7 g first minted?
<|assistant|>
SELECT "first_minting" FROM "table1_1307572_1" WHERE "mass"='3.7 g';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_enlargement" (
"member_countries" text,
"population" real,
"area_km" real,
"gdp_billion_us" text,
"gdp_per_capita_us" real
);
Question: What is the number of population for lithuania?
<|assistant|>
SELECT COUNT("population") FROM "2004_enlargement" WHERE "member_countries"='Lithuania';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_enlargement" (
"member_countries" text,
"population" real,
"area_km" real,
"gdp_billion_us" text,
"gdp_per_capita_us" real
);
Question: Name the gdp where gdp per capita 20200
<|assistant|>
SELECT "gdp_billion_us" FROM "2004_enlargement" WHERE "gdp_per_capita_us"=20200;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_enlargement" (
"member_countries" text,
"population" real,
"area_km" real,
"gdp_billion_us" text,
"gdp_per_capita_us" real
);
Question: Name the total number of area for 775927 population
<|assistant|>
SELECT COUNT("area_km") FROM "2004_enlargement" WHERE "population"=775927;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1995_enlargement" (
"member_countries" text,
"population" real,
"area_km" real,
"gdp_billion_us" text,
"gdp_per_capita_us" real
);
Question: What is the gdp of the country with an area of 83871 (km2)?
<|assistant|>
SELECT "gdp_billion_us" FROM "1995_enlargement" WHERE "area_km"=83871;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1995_enlargement" (
"member_countries" text,
"population" real,
"area_km" real,
"gdp_billion_us" text,
"gdp_per_capita_us" real
);
Question: What was the gdp of the country with a gdp per capita of $18048?
<|assistant|>
SELECT "gdp_billion_us" FROM "1995_enlargement" WHERE "gdp_per_capita_us"=18048;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1995_enlargement" (
"member_countries" text,
"population" real,
"area_km" real,
"gdp_billion_us" text,
"gdp_per_capita_us" real
);
Question: What is Austria's maximum area (km2)?
<|assistant|>
SELECT MAX("area_km") FROM "1995_enlargement" WHERE "member_countries"='Austria';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"season" real,
"teams" real,
"champion" text,
"season_mvp" text,
"top_draft_pick" text,
"rookie_of_the_year" text,
"all_star_game" text
);
Question: What is the season for no award given for rookie of the year?
<|assistant|>
SELECT "season" FROM "see_also" WHERE "rookie_of_the_year"='No award given';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_13110459_2" (
"no" real,
"air_date" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"night" real,
"timeslot" real,
"overall" text
);
Question: how many air date with overall being 83/95
<|assistant|>
SELECT COUNT("air_date") FROM "table1_13110459_2" WHERE "overall"='83/95';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_13110459_2" (
"no" real,
"air_date" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"night" real,
"timeslot" real,
"overall" text
);
Question: how many viewers (m) with overall being 91/101
<|assistant|>
SELECT COUNT("viewers_m") FROM "table1_13110459_2" WHERE "overall"='91/101';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_13110459_2" (
"no" real,
"air_date" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"night" real,
"timeslot" real,
"overall" text
);
Question: what are all the rating with viewers (m) being 2.89
<|assistant|>
SELECT "rating" FROM "table1_13110459_2" WHERE "viewers_m"='2.89';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_13110459_2" (
"no" real,
"air_date" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"night" real,
"timeslot" real,
"overall" text
);
Question: what are all the overall with rating being 1.4
<|assistant|>
SELECT "overall" FROM "table1_13110459_2" WHERE "rating"='1.4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_13110459_2" (
"no" real,
"air_date" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"night" real,
"timeslot" real,
"overall" text
);
Question: what are all the overall with viewers (m) being 2.61
<|assistant|>
SELECT "overall" FROM "table1_13110459_2" WHERE "viewers_m"='2.61';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_13110459_2" (
"no" real,
"air_date" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"night" real,
"timeslot" real,
"overall" text
);
Question: what are all the rating with viewers (m) being 2.61
<|assistant|>
SELECT "rating" FROM "table1_13110459_2" WHERE "viewers_m"='2.61';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_season" (
"year" real,
"competition" text,
"location" text,
"event" text,
"final_rank" text,
"final_score" text,
"qualifying_rank" real,
"qualifying_score" text
);
Question: what is the year where the qualifying score was 15.150?
<|assistant|>
SELECT "year" FROM "2008_season" WHERE "qualifying_score"='15.150';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_season" (
"year" real,
"competition" text,
"location" text,
"event" text,
"final_rank" text,
"final_score" text,
"qualifying_rank" real,
"qualifying_score" text
);
Question: how many times was the qualifying score 60.750?
<|assistant|>
SELECT COUNT("event") FROM "2008_season" WHERE "qualifying_score"='60.750';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_season" (
"year" real,
"competition" text,
"location" text,
"event" text,
"final_rank" text,
"final_score" text,
"qualifying_rank" real,
"qualifying_score" text
);
Question: how many times is the qualifying score 61.400?
<|assistant|>
SELECT COUNT("year") FROM "2008_season" WHERE "qualifying_score"='61.400';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_season" (
"year" real,
"competition" text,
"location" text,
"event" text,
"final_rank" text,
"final_score" text,
"qualifying_rank" real,
"qualifying_score" text
);
Question: what is the final-rank for the uneven bars and the competition is u.s. championships?
<|assistant|>
SELECT "final_rank" FROM "2008_season" WHERE "event"='Uneven Bars' AND "competition"='U.S. Championships';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_season" (
"year" real,
"competition" text,
"location" text,
"event" text,
"final_rank" text,
"final_score" text,
"qualifying_rank" real,
"qualifying_score" text
);
Question: what is the lowest qualifying rank?
<|assistant|>
SELECT MIN("qualifying_rank") FROM "2008_season";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_season" (
"year" real,
"competition" text,
"location" text,
"event" text,
"final_rank" text,
"final_score" text,
"qualifying_rank" real,
"qualifying_score" text
);
Question: what is the highest qualifying rank where the competition is olympic trials, the final-rank is 4 and qualifying score is 15.100?
<|assistant|>
SELECT MAX("qualifying_rank") FROM "2008_season" WHERE "competition"='Olympic Trials' AND "final_rank"='4' AND "qualifying_score"='15.100';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_winners" (
"season" real,
"season_premiere_date" text,
"season_finale_date" text,
"winner" text,
"1st_runner_up" text,
"2nd_runner_up" text
);
Question: When did the season of gurmeet choudhary premiere?
<|assistant|>
SELECT "season_premiere_date" FROM "series_winners" WHERE "winner"='Gurmeet Choudhary';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_winners" (
"season" real,
"season_premiere_date" text,
"season_finale_date" text,
"winner" text,
"1st_runner_up" text,
"2nd_runner_up" text
);
Question: When was the season finale of meiyang chang?
<|assistant|>
SELECT "season_finale_date" FROM "series_winners" WHERE "winner"='Meiyang Chang';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_winners" (
"season" real,
"season_premiere_date" text,
"season_finale_date" text,
"winner" text,
"1st_runner_up" text,
"2nd_runner_up" text
);
Question: What is the winner of rashmi desai?
<|assistant|>
SELECT "winner" FROM "series_winners" WHERE "1st_runner_up"='Rashmi Desai';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_winners" (
"season" real,
"season_premiere_date" text,
"season_finale_date" text,
"winner" text,
"1st_runner_up" text,
"2nd_runner_up" text
);
Question: When is the season finale of meiyang chang?
<|assistant|>
SELECT "season_finale_date" FROM "series_winners" WHERE "winner"='Meiyang Chang';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1315616_1" (
"k_haku_num" real,
"date" text,
"red_team_host" text,
"white_team_host" text,
"mediator" text,
"winning_team" text
);
Question: In what number kōhaku was the red team host Peggy Hayama?
<|assistant|>
SELECT "k_haku_num" FROM "table1_1315616_1" WHERE "red_team_host"='Peggy Hayama';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1315616_1" (
"k_haku_num" real,
"date" text,
"red_team_host" text,
"white_team_host" text,
"mediator" text,
"winning_team" text
);
Question: Who was the mediator in kōhaku number 53?
<|assistant|>
SELECT "mediator" FROM "table1_1315616_1" WHERE "k_haku_num"=53;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1315616_1" (
"k_haku_num" real,
"date" text,
"red_team_host" text,
"white_team_host" text,
"mediator" text,
"winning_team" text
);
Question: On what date was Keiichi Ubukata the mediator and Mitsuko Mori the red team host?
<|assistant|>
SELECT "date" FROM "table1_1315616_1" WHERE "mediator"='Keiichi Ubukata' AND "red_team_host"='Mitsuko Mori';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"score" real,
"to_par" text,
"margin_of_victory" text,
"purse" real,
"winners_share" real
);
Question: What is the most recent year?
<|assistant|>
SELECT MAX("year") FROM "winners";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"score" real,
"to_par" text,
"margin_of_victory" text,
"purse" real,
"winners_share" real
);
Question: What year is Jiyai Shin the champion?
<|assistant|>
SELECT COUNT("year") FROM "winners" WHERE "champion"='Jiyai Shin';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_13183076_3" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: What is the # for the episode with a Production code of 3T7057?
<|assistant|>
SELECT "num" FROM "table1_13183076_3" WHERE "production_code"='3T7057';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_13183076_3" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: What is the Original air date for the episode directed by Tricia Brock?
<|assistant|>
SELECT "original_air_date" FROM "table1_13183076_3" WHERE "directed_by"='Tricia Brock';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_13183076_3" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: What is the Original air date for the episode written by Peter Ocko?
<|assistant|>
SELECT "original_air_date" FROM "table1_13183076_3" WHERE "written_by"='Peter Ocko';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_13183076_3" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: How many U.S. viewers (million) are there for the episode whose Production code is 3T7051?
<|assistant|>
SELECT "u_s_viewers_million" FROM "table1_13183076_3" WHERE "production_code"='3T7051';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_13183076_3" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: How many episodes were aired on the Original air date for "Circus, Circus"?
<|assistant|>
SELECT COUNT("original_air_date") FROM "table1_13183076_3" WHERE "title"='\"Circus, Circus\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_13223187_1" (
"stage_winner" text,
"missouri_department_of_tourism_general_classification_yellow_jersey" text,
"edward_jones_investments_points_classification_green_jersey" text,
"michelob_ultra_mountains_classification_gold_polka_dot_jersey" text,
"build_a_bear_best_young_rider_blue_jersey" text,
"drury_hotels_most_aggressive_rider_red_jersey" text,
"team_classification" text
);
Question: How many michelob ultra mountains classification for darren lill
<|assistant|>
SELECT COUNT("michelob_ultra_mountains_classification_gold_polka_dot_jersey") FROM "table1_13223187_1" WHERE "drury_hotels_most_aggressive_rider_red_jersey"='Darren Lill';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notable_releases_of_the_year_2001" (
"release" text,
"title" text,
"windows" text,
"5th_gen" text,
"6th_gen" text,
"handheld" text
);
Question: What was the release date of Sonic Adventure 2?
<|assistant|>
SELECT "release" FROM "notable_releases_of_the_year_2001" WHERE "title"='Sonic Adventure 2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notable_releases_of_the_year_2001" (
"release" text,
"title" text,
"windows" text,
"5th_gen" text,
"6th_gen" text,
"handheld" text
);
Question: Was the release on April 8 available on Windows?
<|assistant|>
SELECT "windows" FROM "notable_releases_of_the_year_2001" WHERE "release"='April 8';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notable_releases_of_the_year_2001" (
"release" text,
"title" text,
"windows" text,
"5th_gen" text,
"6th_gen" text,
"handheld" text
);
Question: What title was released on August 27?
<|assistant|>
SELECT "title" FROM "notable_releases_of_the_year_2001" WHERE "release"='August 27';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notable_releases_of_the_year_2000" (
"release" text,
"title" text,
"windows" text,
"5th_gen" text,
"6th_gen" text,
"handheld" text,
"arcade" text
);
Question: Is icewind dale available for windows
<|assistant|>
SELECT "windows" FROM "notable_releases_of_the_year_2000" WHERE "title"='Icewind Dale';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_13237088_28" (
"name" text,
"gp" real,
"solo" real,
"ast" real,
"total" real,
"tfl_yds" text,
"no_yds" text,
"br_up" real,
"qbh" real,
"no_yds" text,
"avg" text,
"td" real,
"long" real,
"rcv_yds" text,
"ff" real,
"blkd_kick" real
);
Question: List all number of yards with an AST of 8.
<|assistant|>
SELECT "no_yds" FROM "table1_13237088_28" WHERE "ast"=8;<|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,
"game_site" text,
"record" text,
"attendance" real
);
Question: Who did the Seahawks play when the listed attendance was 61615?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "attendance"=61615;<|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,
"game_site" text,
"record" text,
"attendance" real
);
Question: What was the Seahawks record on September 18, 1983?
<|assistant|>
SELECT "record" FROM "schedule" WHERE "date"='September 18, 1983';<|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,
"game_site" text,
"record" text,
"attendance" real
);
Question: What week did the Seahawks play at los angeles memorial coliseum?
<|assistant|>
SELECT MIN("week") FROM "schedule" WHERE "game_site"='Los Angeles Memorial Coliseum';<|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,
"game_site" text,
"record" text,
"attendance" real
);
Question: What was the score of the game when the attendance was 48945?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "attendance"=48945;<|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,
"game_site" text,
"record" text,
"attendance" real
);
Question: Who did the Seahawks play on September 4, 1983?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "date"='September 4, 1983';<|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,
"game_site" text,
"record" text,
"attendance" real
);
Question: What was the record set during the game played at Hubert H. Humphrey Metrodome?
<|assistant|>
SELECT "record" FROM "schedule" WHERE "game_site"='Hubert H. Humphrey Metrodome';<|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,
"game_site" text,
"record" text,
"attendance" real
);
Question: On what date was the game against San Diego Chargers played?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "opponent"='San Diego Chargers';<|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,
"game_site" text,
"record" text,
"attendance" real
);
Question: What was the date of the game against Kansas City Chiefs?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "opponent"='Kansas City Chiefs';<|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,
"game_site" text,
"record" text,
"attendance" real
);
Question: What was the result of the game played on September 16, 1984?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "date"='September 16, 1984';<|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,
"game_site" text,
"record" text,
"attendance" text
);
Question: On what date did the game end with the result w 43-14?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "result"='W 43-14';<|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,
"game_site" text,
"record" text,
"attendance" text
);
Question: What was the attendance at the game that resulted in w 24-20?
<|assistant|>
SELECT "attendance" FROM "schedule" WHERE "result"='W 24-20';<|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,
"game_site" text,
"record" text,
"attendance" text
);
Question: Who did they play against in the game that ended in 2-2?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "record"='2-2';<|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,
"game_site" text,
"record" text,
"attendance" text
);
Question: When was the record of 0-1 set?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "record"='0-1';<|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,
"game_site" text,
"record" text,
"attendance" text
);
Question: During what weak of the season was the game played on october 4, 1987?
<|assistant|>
SELECT MAX("week") FROM "schedule" WHERE "date"='October 4, 1987';<|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,
"game_site" text,
"record" text,
"attendance" real
);
Question: What was the attendance when the record was 1-1?
<|assistant|>
SELECT "attendance" FROM "schedule" WHERE "record"='1-1';<|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,
"game_site" text,
"record" text,
"attendance" real
);
Question: In what week was the record 5-9?
<|assistant|>
SELECT MAX("week") FROM "schedule" WHERE "record"='5-9';<|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,
"game_site" text,
"record" text,
"attendance" real
);
Question: What date did the Seahawks play the Kansas City Chiefs at the Kingdome?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "game_site"='Kingdome' AND "opponent"='Kansas City Chiefs';<|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,
"game_site" text,
"record" text,
"attendance" real
);
Question: In what week was November 27, 1977?
<|assistant|>
SELECT MAX("week") FROM "schedule" WHERE "date"='November 27, 1977';<|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,
"game_site" text,
"record" text,
"attendance" real
);
Question: Where did the teams play on October 16, 1977?
<|assistant|>
SELECT "game_site" FROM "schedule" WHERE "date"='October 16, 1977';<|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,
"game_site" text,
"record" text,
"attendance" real
);
Question: What team was the opponent at Mile High Stadium?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "game_site"='Mile High Stadium';<|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,
"game_site" text,
"record" text,
"attendance" real
);
Question: What was the record when they played the Los Angeles Rams?
<|assistant|>
SELECT "record" FROM "schedule" WHERE "opponent"='Los Angeles Rams';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.