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