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" text, "margin" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the winning score of the Masters Tournament?`: ```sql
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" text, "margin" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the winning score of the PGA Championship (3)?`: ```sql
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" real, "earnings" real, "money_list_rank" text, "scoring_average" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of starts for 1987?`: ```sql
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" real, "earnings" real, "money_list_rank" text, "scoring_average" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the scoring aerage for 111419?`: ```sql
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" real, "earnings" real, "money_list_rank" text, "scoring_average" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the money list rank for 1966?`: ```sql
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_majors" text, "2nd" real, "3rd" real, "earnings" real, "money_list_rank" text, "scoring_average" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of scoring average for money list rank of 174`: ```sql
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" real, "otherspct" text, "othersnum" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the county where kerry# is 59740?`: ```sql
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, "otherspct" text, "othersnum" real ); ### SQL Given the database schema, here is the SQL query that answers `In cook county Kerry# is?`: ```sql
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, "otherspct" text, "othersnum" real ); ### SQL Given the database schema, here is the SQL query that answers `When bush# is 3907, what is Kerry#?`: ```sql
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" real, "otherspct" text, "othersnum" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the others# when bush% is 57.0%?`: ```sql
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, "runner_up" text, "prize_money" text, "international_destination" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the mole with airdate being 8 january 2009`: ```sql
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, "runner_up" text, "prize_money" text, "international_destination" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the mole with prize money being €24,475`: ```sql
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" text, "runner_up" text, "prize_money" text, "international_destination" text ); ### SQL Given the database schema, here is the SQL query that answers ` what's the the mole with airdate being 5 january 2012`: ```sql
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, "winner" text, "runner_up" text, "prize_money" text, "international_destination" text ); ### SQL Given the database schema, here is the SQL query that answers `what's airdate with international destination being scotland`: ```sql
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" text, "runner_up" text, "prize_money" text, "international_destination" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the mole with winner being frédérique huydts`: ```sql
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, "runner_up" text, "prize_money" text, "international_destination" text ); ### SQL Given the database schema, here is the SQL query that answers `what's runner-up with season being season 13`: ```sql
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, "bushnum" real, "otherspct" text, "othersnum" real ); ### SQL Given the database schema, here is the SQL query that answers `In what county did 29231 people vote for Kerry?`: ```sql
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" text, "bushnum" real, "otherspct" text, "othersnum" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the name of the county where 48.3% voted for Bush?`: ```sql
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, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the percentage of votes for other candidates in the county where Bush got 51.6% of the votes?`: ```sql
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" text, "bushnum" real, "otherspct" text, "othersnum" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the name of the county where 54.6% voted for Bush?`: ```sql
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, "blocks" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of steals for 2012`: ```sql
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" text, "steals" text, "blocks" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are the blockers where points are scored by Zach Randolph (24)?`: ```sql
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" text, "steals" text, "blocks" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are the blockers where points are scored by Zach Randolph (24)?`: ```sql
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" text ); ### SQL Given the database schema, here is the SQL query that answers `How many rebounds were there in 2008?`: ```sql
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" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had all of the blocks in 2012?`: ```sql
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, "blocks" text ); ### SQL Given the database schema, here is the SQL query that answers `What year has Nerlens Noel (4) as blocker?`: ```sql
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, "bronze_medals" real, "total_medals" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the most silver medals?`: ```sql
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, "gold_medals" real, "silver_medals" real, "bronze_medals" real, "total_medals" real ); ### SQL Given the database schema, here is the SQL query that answers `what are all the gold medals when the silver medals is smaller than 1.0?`: ```sql
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_medals" real, "silver_medals" real, "bronze_medals" real, "total_medals" real ); ### SQL Given the database schema, here is the SQL query that answers `How many numbers were listed under Silver Medals for Portsmouth HS?`: ```sql
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_medals" real, "bronze_medals" real, "total_medals" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the smallest total number of medals?`: ```sql
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" real, "silver_medals" real, "bronze_medals" real, "total_medals" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of gold medals Naugatuck HS won?`: ```sql
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, "circuit" text, "date" text, "length" text, "pole_position" text, "gt3_winner" text, "gtc_winner" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the maximum round for gt3 winner hector lester tim mullen and pole position of jonny cocker paul drayson`: ```sql
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, "pole_position" text, "gt3_winner" text, "gtc_winner" text ); ### SQL Given the database schema, here is the SQL query that answers `what are all the date for gt3 winner oliver bryant matt harris`: ```sql
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, "circuit" text, "date" text, "length" text, "pole_position" text, "gt3_winner" text, "gtc_winner" text ); ### SQL Given the database schema, here is the SQL query that answers `what are all the date for gtc winners graeme mundy jamie smyth and gt3 winners hector lester tim mullen`: ```sql
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" text, "length" text, "pole_position" text, "gt3_winner" text, "gtc_winner" text ); ### SQL Given the database schema, here is the SQL query that answers `what are all the circuit for 9 september and gt3 winner hector lester allan simonsen`: ```sql
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, "circuit" text, "date" text, "length" text, "pole_position" text, "gt3_winner" text, "gtc_winner" text ); ### SQL Given the database schema, here is the SQL query that answers `what are all the circuit for gtc winner graeme mundy jamie smyth and pole position bradley ellis alex mortimer`: ```sql
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" text, "pole_position" text, "gt3_winner" text, "gtc_winner" text ); ### SQL Given the database schema, here is the SQL query that answers `what are all the gtc winners for pole position no. 21 team modena`: ```sql
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, "composition" text, "edge" text, "obverse" text, "reverse" text, "first_minting" real, "issue" text, "withdrawal" text, "lapse" text ); ### SQL Given the database schema, here is the SQL query that answers `What material is made with a rounded, plain edge?`: ```sql
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, "composition" text, "edge" text, "obverse" text, "reverse" text, "first_minting" real, "issue" text, "withdrawal" text, "lapse" text ); ### SQL Given the database schema, here is the SQL query that answers `How many coins have a diameter of 23mm?`: ```sql
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" text, "composition" text, "edge" text, "obverse" text, "reverse" text, "first_minting" real, "issue" text, "withdrawal" text, "lapse" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the coin with the mass of 3.7 g first minted?`: ```sql
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_billion_us" text, "gdp_per_capita_us" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of population for lithuania?`: ```sql
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_us" text, "gdp_per_capita_us" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the gdp where gdp per capita 20200`: ```sql
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, "gdp_billion_us" text, "gdp_per_capita_us" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of area for 775927 population`: ```sql
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" real, "gdp_billion_us" text, "gdp_per_capita_us" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the gdp of the country with an area of 83871 (km2)?`: ```sql
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_km" real, "gdp_billion_us" text, "gdp_per_capita_us" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the gdp of the country with a gdp per capita of $18048?`: ```sql
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_us" text, "gdp_per_capita_us" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Austria's maximum area (km2)?`: ```sql
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" text, "top_draft_pick" text, "rookie_of_the_year" text, "all_star_game" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the season for no award given for rookie of the year?`: ```sql
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_rating_share" text, "viewers_m" text, "night" real, "timeslot" real, "overall" text ); ### SQL Given the database schema, here is the SQL query that answers ` how many air date with overall being 83/95`: ```sql
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_49_rating_share" text, "viewers_m" text, "night" real, "timeslot" real, "overall" text ); ### SQL Given the database schema, here is the SQL query that answers ` how many viewers (m) with overall being 91/101`: ```sql
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, "18_49_rating_share" text, "viewers_m" text, "night" real, "timeslot" real, "overall" text ); ### SQL Given the database schema, here is the SQL query that answers `what are all the rating with viewers (m) being 2.89`: ```sql
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_49_rating_share" text, "viewers_m" text, "night" real, "timeslot" real, "overall" text ); ### SQL Given the database schema, here is the SQL query that answers `what are all the overall with rating being 1.4`: ```sql
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, "18_49_rating_share" text, "viewers_m" text, "night" real, "timeslot" real, "overall" text ); ### SQL Given the database schema, here is the SQL query that answers `what are all the overall with viewers (m) being 2.61`: ```sql
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, "18_49_rating_share" text, "viewers_m" text, "night" real, "timeslot" real, "overall" text ); ### SQL Given the database schema, here is the SQL query that answers `what are all the rating with viewers (m) being 2.61`: ```sql
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" text, "final_rank" text, "final_score" text, "qualifying_rank" real, "qualifying_score" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the year where the qualifying score was 15.150?`: ```sql
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, "final_rank" text, "final_score" text, "qualifying_rank" real, "qualifying_score" text ); ### SQL Given the database schema, here is the SQL query that answers `how many times was the qualifying score 60.750?`: ```sql
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, "final_rank" text, "final_score" text, "qualifying_rank" real, "qualifying_score" text ); ### SQL Given the database schema, here is the SQL query that answers `how many times is the qualifying score 61.400?`: ```sql
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, "location" text, "event" text, "final_rank" text, "final_score" text, "qualifying_rank" real, "qualifying_score" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the final-rank for the uneven bars and the competition is u.s. championships?`: ```sql
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" text, "final_score" text, "qualifying_rank" real, "qualifying_score" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the lowest qualifying rank?`: ```sql
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" ( "year" real, "competition" text, "location" text, "event" text, "final_rank" text, "final_score" text, "qualifying_rank" real, "qualifying_score" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the highest qualifying rank where the competition is olympic trials, the final-rank is 4 and qualifying score is 15.100?`: ```sql
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" text, "winner" text, "1st_runner_up" text, "2nd_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the season of gurmeet choudhary premiere?`: ```sql
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, "winner" text, "1st_runner_up" text, "2nd_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the season finale of meiyang chang?`: ```sql
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" text, "1st_runner_up" text, "2nd_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the winner of rashmi desai?`: ```sql
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, "winner" text, "1st_runner_up" text, "2nd_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `When is the season finale of meiyang chang?`: ```sql
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, "white_team_host" text, "mediator" text, "winning_team" text ); ### SQL Given the database schema, here is the SQL query that answers `In what number kōhaku was the red team host Peggy Hayama? `: ```sql
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" text, "mediator" text, "winning_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the mediator in kōhaku number 53?`: ```sql
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, "red_team_host" text, "white_team_host" text, "mediator" text, "winning_team" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date was Keiichi Ubukata the mediator and Mitsuko Mori the red team host?`: ```sql
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_victory" text, "purse" real, "winners_share" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the most recent year?`: ```sql
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, "margin_of_victory" text, "purse" real, "winners_share" real ); ### SQL Given the database schema, here is the SQL query that answers `What year is Jiyai Shin the champion?`: ```sql
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_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the # for the episode with a Production code of 3T7057?`: ```sql
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, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Original air date for the episode directed by Tricia Brock?`: ```sql
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, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Original air date for the episode written by Peter Ocko?`: ```sql
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, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `How many U.S. viewers (million) are there for the episode whose Production code is 3T7051?`: ```sql
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, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes were aired on the Original air date for "Circus, Circus"?`: ```sql
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_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 ); ### SQL Given the database schema, here is the SQL query that answers `How many michelob ultra mountains classification for darren lill`: ```sql
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, "5th_gen" text, "6th_gen" text, "handheld" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the release date of Sonic Adventure 2?`: ```sql
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, "5th_gen" text, "6th_gen" text, "handheld" text ); ### SQL Given the database schema, here is the SQL query that answers `Was the release on April 8 available on Windows?`: ```sql
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" text, "6th_gen" text, "handheld" text ); ### SQL Given the database schema, here is the SQL query that answers `What title was released on August 27?`: ```sql
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" text, "6th_gen" text, "handheld" text, "arcade" text ); ### SQL Given the database schema, here is the SQL query that answers `Is icewind dale available for windows`: ```sql
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, "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 ); ### SQL Given the database schema, here is the SQL query that answers `List all number of yards with an AST of 8.`: ```sql
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, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Who did the Seahawks play when the listed attendance was 61615?`: ```sql
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_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the Seahawks record on September 18, 1983?`: ```sql
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" text, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What week did the Seahawks play at los angeles memorial coliseum?`: ```sql
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, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the game when the attendance was 48945?`: ```sql
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" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Who did the Seahawks play on September 4, 1983?`: ```sql
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, "result" text, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the record set during the game played at Hubert H. Humphrey Metrodome?`: ```sql
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, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `On what date was the game against San Diego Chargers played?`: ```sql
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, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of the game against Kansas City Chiefs?`: ```sql
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, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the result of the game played on September 16, 1984?`: ```sql
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_site" text, "record" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date did the game end with the result w 43-14?`: ```sql
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, "game_site" text, "record" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance at the game that resulted in w 24-20? `: ```sql
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, "game_site" text, "record" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who did they play against in the game that ended in 2-2?`: ```sql
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" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the record of 0-1 set?`: ```sql
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, "result" text, "game_site" text, "record" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `During what weak of the season was the game played on october 4, 1987?`: ```sql
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" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance when the record was 1-1?`: ```sql
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" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `In what week was the record 5-9?`: ```sql
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, "result" text, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What date did the Seahawks play the Kansas City Chiefs at the Kingdome?`: ```sql
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, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `In what week was November 27, 1977?`: ```sql
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" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Where did the teams play on October 16, 1977?`: ```sql
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" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What team was the opponent at Mile High Stadium?`: ```sql
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, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the record when they played the Los Angeles Rams?`: ```sql