output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT COUNT("attendance") FROM "season_schedule" WHERE "date"='september 14, 1968';
## Task Generate a SQL query to answer the following question: `How many people attended the September 14, 1968 game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `How many people attended the September 14, 1968 game?`: ```sql
SELECT "director" FROM "1940" WHERE "production_number"='9368';
## Task Generate a SQL query to answer the following question: `Who is the director of the production number 9368?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1940" ( "title" text, "series" text, "director" text, "production_number" text, "release_date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the director of the production number 9368?`: ```sql
SELECT "title" FROM "1940" WHERE "director"='chuck jones' AND "production_number"='9537';
## Task Generate a SQL query to answer the following question: `What is the title with chuck jones as the director and the production number 9537?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1940" ( "title" text, "series" text, "director" text, "production_number" text, "release_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title with chuck jones as the director and the production number 9537?`: ```sql
SELECT "release_date" FROM "1940" WHERE "series"='mm' AND "title"='tom thumb in trouble';
## Task Generate a SQL query to answer the following question: `What is the release date of the mm series, which has the title tom thumb in trouble?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1940" ( "title" text, "series" text, "director" text, "production_number" text, "release_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the release date of the mm series, which has the title tom thumb in trouble?`: ```sql
SELECT "release_date" FROM "1940" WHERE "series"='mm' AND "title"='confederate honey';
## Task Generate a SQL query to answer the following question: `What is the release date of the mm series which has the title confederate honey?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1940" ( "title" text, "series" text, "director" text, "production_number" text, "release_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the release date of the mm series which has the title confederate honey?`: ```sql
SELECT AVG("start") FROM "indianapolis_500" WHERE "team"='andretti green racing' AND "finish">3 AND "year"<2007;
## Task Generate a SQL query to answer the following question: `What is the start of the Team of Andretti Green Racing with a finish higher than 3 in a year before 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_500" ( "year" real, "chassis" text, "engine" text, "start" real, "finish" real, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the start of the Team of Andretti Green Racing with a finish higher than 3 in a year before 2007?`: ```sql
SELECT MIN("start") FROM "indianapolis_500" WHERE "year">2008;
## Task Generate a SQL query to answer the following question: `What is the lowest start in a year after 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_500" ( "year" real, "chassis" text, "engine" text, "start" real, "finish" real, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest start in a year after 2008?`: ```sql
SELECT "finish" FROM "indianapolis_500" WHERE "start"<25;
## Task Generate a SQL query to answer the following question: `What finish has a start smaller than 25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_500" ( "year" real, "chassis" text, "engine" text, "start" real, "finish" real, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What finish has a start smaller than 25?`: ```sql
SELECT COUNT("start") FROM "indianapolis_500" WHERE "team"='rahal letterman' AND "year"=2006;
## Task Generate a SQL query to answer the following question: `Where did the team of Rahal Letterman in 2006 start?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_500" ( "year" real, "chassis" text, "engine" text, "start" real, "finish" real, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `Where did the team of Rahal Letterman in 2006 start?`: ```sql
SELECT "year" FROM "indianapolis_500" WHERE "chassis"='dallara' AND "team"='andretti green racing' AND "finish"<8;
## Task Generate a SQL query to answer the following question: `What year did Team of Andretti Green Racing have a finish smaller than 8 with a Dallara chassis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_500" ( "year" real, "chassis" text, "engine" text, "start" real, "finish" real, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What year did Team of Andretti Green Racing have a finish smaller than 8 with a Dallara chassis?`: ```sql
SELECT "director" FROM "planned_for_theatrical_release_but_never" WHERE "release_date"='2004-03-31' AND "characters"='daffy (as duck dodgers)';
## Task Generate a SQL query to answer the following question: `What director has 2004-03-31 as the release date, with daffy (as duck dodgers) as the character?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "planned_for_theatrical_release_but_never" ( "title" text, "series" text, "director" text, "characters" text, "release_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What director has 2004-03-31 as the release date, with daffy (as duck dodgers) as the character?`: ```sql
SELECT "title" FROM "planned_for_theatrical_release_but_never" WHERE "characters"='daffy (as duck dodgers)';
## Task Generate a SQL query to answer the following question: `What title has daffy (as duck dodgers) as the character?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "planned_for_theatrical_release_but_never" ( "title" text, "series" text, "director" text, "characters" text, "release_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What title has daffy (as duck dodgers) as the character?`: ```sql
SELECT "series" FROM "planned_for_theatrical_release_but_never" WHERE "director"='dan povenmire' AND "title"='museum scream';
## Task Generate a SQL query to answer the following question: `What series has dan povenmire as the director, with museum scream as the title?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "planned_for_theatrical_release_but_never" ( "title" text, "series" text, "director" text, "characters" text, "release_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What series has dan povenmire as the director, with museum scream as the title?`: ```sql
SELECT MAX("number_of_electorates_2009") FROM "assembly_segments" WHERE "district"='raisen' AND "constituency_number"='142';
## Task Generate a SQL query to answer the following question: `What was the highest number of 2009 electorates for Raisen when the consituency number was 142?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest number of 2009 electorates for Raisen when the consituency number was 142?`: ```sql
SELECT COUNT("population_density_per_km") FROM "northern_villages" WHERE "name"='total northern villages' AND "population_2006">11414;
## Task Generate a SQL query to answer the following question: `How much Population density (per km²) has a Name of total northern villages, and a Population (2006) larger than 11414?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "northern_villages" ( "name" text, "population_2011" real, "population_2006" real, "change_pct" real, "land_area_km" real, "population_density_per_km" real ); ### SQL Given the database schema, here is the SQL query that answers `How much Population density (per km²) has a Name of total northern villages, and a Population (2006) larger than 11414?`: ```sql
SELECT MAX("population_density_per_km") FROM "northern_villages" WHERE "change_pct">4.9 AND "land_area_km"<15.59 AND "population_2011">790;
## Task Generate a SQL query to answer the following question: `Which Population density (per km²) has a Change (%) larger than 4.9, and a Land area (km²) smaller than 15.59, and a Population (2011) larger than 790?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "northern_villages" ( "name" text, "population_2011" real, "population_2006" real, "change_pct" real, "land_area_km" real, "population_density_per_km" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Population density (per km²) has a Change (%) larger than 4.9, and a Land area (km²) smaller than 15.59, and a Population (2011) larger than 790?`: ```sql
SELECT SUM("population_2011") FROM "northern_villages" WHERE "land_area_km">15.69 AND "population_density_per_km">57.3;
## Task Generate a SQL query to answer the following question: `How much Population (2011) has a Land area (km²) larger than 15.69, and a Population density (per km²) larger than 57.3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "northern_villages" ( "name" text, "population_2011" real, "population_2006" real, "change_pct" real, "land_area_km" real, "population_density_per_km" real ); ### SQL Given the database schema, here is the SQL query that answers `How much Population (2011) has a Land area (km²) larger than 15.69, and a Population density (per km²) larger than 57.3?`: ```sql
SELECT MAX("land_area_km") FROM "northern_villages" WHERE "population_density_per_km">112.6 AND "population_2006">785 AND "name"='pinehouse';
## Task Generate a SQL query to answer the following question: `Which Land area (km²) has a Population density (per km²) larger than 112.6, and a Population (2006) larger than 785, and a Name of pinehouse?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "northern_villages" ( "name" text, "population_2011" real, "population_2006" real, "change_pct" real, "land_area_km" real, "population_density_per_km" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Land area (km²) has a Population density (per km²) larger than 112.6, and a Population (2006) larger than 785, and a Name of pinehouse?`: ```sql
SELECT "previous_number_s" FROM "great_northern_section" WHERE "number"='30';
## Task Generate a SQL query to answer the following question: `With a number of 30, what would be listed for previous number(s)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "great_northern_section" ( "number" text, "previous_number_s" real, "previous_class" text, "converted" real, "withdrawn" real, "disposal" text ); ### SQL Given the database schema, here is the SQL query that answers `With a number of 30, what would be listed for previous number(s)?`: ```sql
SELECT MAX("converted") FROM "great_northern_section" WHERE "previous_number_s"=68165;
## Task Generate a SQL query to answer the following question: `With a previous number of 68165, what is the oldest converted date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "great_northern_section" ( "number" text, "previous_number_s" real, "previous_class" text, "converted" real, "withdrawn" real, "disposal" text ); ### SQL Given the database schema, here is the SQL query that answers `With a previous number of 68165, what is the oldest converted date?`: ```sql
SELECT MAX("withdrawn") FROM "great_northern_section" WHERE "number"='32 (2nd)' AND "converted"<1966;
## Task Generate a SQL query to answer the following question: `With a converted less than 1966 and a number of 32 (2nd), what is the largest number listed for withdrawn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "great_northern_section" ( "number" text, "previous_number_s" real, "previous_class" text, "converted" real, "withdrawn" real, "disposal" text ); ### SQL Given the database schema, here is the SQL query that answers `With a converted less than 1966 and a number of 32 (2nd), what is the largest number listed for withdrawn?`: ```sql
SELECT "average" FROM "most_wickets" WHERE "matches"='11';
## Task Generate a SQL query to answer the following question: `What is the average when the matches are 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_wickets" ( "player" text, "matches" text, "overs" text, "wickets" text, "economy_rate" text, "average" text, "strike_rate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average when the matches are 11?`: ```sql
SELECT "overs" FROM "most_wickets" WHERE "matches"='10';
## Task Generate a SQL query to answer the following question: `What is the overs when the matches are 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_wickets" ( "player" text, "matches" text, "overs" text, "wickets" text, "economy_rate" text, "average" text, "strike_rate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the overs when the matches are 10?`: ```sql
SELECT MIN("car_num") FROM "chevy_rock_roll_400" WHERE "driver"='ryan newman' AND "pos">10;
## Task Generate a SQL query to answer the following question: `Which Car # has a Driver of ryan newman, and a Position larger than 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chevy_rock_roll_400" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Car # has a Driver of ryan newman, and a Position larger than 10?`: ```sql
SELECT AVG("car_num") FROM "chevy_rock_roll_400" WHERE "team"='hendrick motorsports' AND "driver"='mark martin' AND "pos">4;
## Task Generate a SQL query to answer the following question: `Which Car # has a Team of hendrick motorsports, and a Driver of mark martin, and a Position larger than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chevy_rock_roll_400" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Car # has a Team of hendrick motorsports, and a Driver of mark martin, and a Position larger than 4?`: ```sql
SELECT "time" FROM "saturday_and_sundays_programming_as_of_s" WHERE "local_networked"='local' AND "ad_freq"='20 minutes' AND "news_freq"='n/a after 7pm news';
## Task Generate a SQL query to answer the following question: `Which time has a local/networked value of Local, ad frequency of every 20 minutes, and news frequency of n/a after 7PM news?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "saturday_and_sundays_programming_as_of_s" ( "time" text, "show_name" text, "local_networked" text, "ad_freq" text, "news_freq" text ); ### SQL Given the database schema, here is the SQL query that answers `Which time has a local/networked value of Local, ad frequency of every 20 minutes, and news frequency of n/a after 7PM news?`: ```sql
SELECT "time" FROM "saturday_and_sundays_programming_as_of_s" WHERE "news_freq"='1 hour' AND "show_name"='best mix overnight';
## Task Generate a SQL query to answer the following question: `Which time has a news frequency of 1 hour and show name of Best Mix Overnight?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "saturday_and_sundays_programming_as_of_s" ( "time" text, "show_name" text, "local_networked" text, "ad_freq" text, "news_freq" text ); ### SQL Given the database schema, here is the SQL query that answers `Which time has a news frequency of 1 hour and show name of Best Mix Overnight?`: ```sql
SELECT "ad_freq" FROM "saturday_and_sundays_programming_as_of_s" WHERE "show_name"='health matters';
## Task Generate a SQL query to answer the following question: `What is the ad frequency for the show named Health Matters?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "saturday_and_sundays_programming_as_of_s" ( "time" text, "show_name" text, "local_networked" text, "ad_freq" text, "news_freq" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the ad frequency for the show named Health Matters?`: ```sql
SELECT "news_freq" FROM "saturday_and_sundays_programming_as_of_s" WHERE "show_name"='locker room';
## Task Generate a SQL query to answer the following question: `What is the news frequency for the show Locker Room?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "saturday_and_sundays_programming_as_of_s" ( "time" text, "show_name" text, "local_networked" text, "ad_freq" text, "news_freq" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the news frequency for the show Locker Room?`: ```sql
SELECT "local_networked" FROM "saturday_and_sundays_programming_as_of_s" WHERE "ad_freq"='n/a';
## Task Generate a SQL query to answer the following question: `What is the local/networked value for the show with an ad frequency of N/A?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "saturday_and_sundays_programming_as_of_s" ( "time" text, "show_name" text, "local_networked" text, "ad_freq" text, "news_freq" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the local/networked value for the show with an ad frequency of N/A?`: ```sql
SELECT "time" FROM "heat_2" WHERE "rank">2 AND "country"='france';
## Task Generate a SQL query to answer the following question: `When france had a rank larger than 2, what was their time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_2" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `When france had a rank larger than 2, what was their time?`: ```sql
SELECT "time" FROM "heat_2" WHERE "country"='kazakhstan';
## Task Generate a SQL query to answer the following question: `What was the time for the country of kazakhstan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_2" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the time for the country of kazakhstan?`: ```sql
SELECT "athletes" FROM "heat_2" WHERE "country"='germany';
## Task Generate a SQL query to answer the following question: `What athletes represented the country of germany?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_2" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What athletes represented the country of germany?`: ```sql
SELECT AVG("rank") FROM "heat_2" WHERE "time"='1:42.054';
## Task Generate a SQL query to answer the following question: `What was the rank for the finish time of 1:42.054?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_2" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the rank for the finish time of 1:42.054?`: ```sql
SELECT "country" FROM "heat_2" WHERE "rank"<7 AND "time"='1:43.189';
## Task Generate a SQL query to answer the following question: `Which country had a rank smaller than 7 and a time of 1:43.189?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_2" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Which country had a rank smaller than 7 and a time of 1:43.189?`: ```sql
SELECT "club" FROM "results_by_team" WHERE "runners_up"=1 AND "last_final_won"='1999';
## Task Generate a SQL query to answer the following question: `what is the club when the runners-up is 1 and the last final won is 1999?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_by_team" ( "club" text, "winners" real, "last_final_won" text, "runners_up" real, "last_final_lost" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the club when the runners-up is 1 and the last final won is 1999?`: ```sql
SELECT "last_final_won" FROM "results_by_team" WHERE "runners_up"=1 AND "club"='rijeka';
## Task Generate a SQL query to answer the following question: `what is the last final won when runners-up is 1 and club is rijeka?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_by_team" ( "club" text, "winners" real, "last_final_won" text, "runners_up" real, "last_final_lost" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the last final won when runners-up is 1 and club is rijeka?`: ```sql
SELECT COUNT("winners") FROM "results_by_team" WHERE "runners_up"<0;
## Task Generate a SQL query to answer the following question: `How many times is runners-up less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_by_team" ( "club" text, "winners" real, "last_final_won" text, "runners_up" real, "last_final_lost" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times is runners-up less than 0?`: ```sql
SELECT COUNT("game") FROM "football_league_division_two" WHERE "result"='4–0' AND "attendance">'12,256';
## Task Generate a SQL query to answer the following question: `How many games have a Result of 4–0, and an Attendance larger than 12,256?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "football_league_division_two" ( "game" real, "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `How many games have a Result of 4–0, and an Attendance larger than 12,256?`: ```sql
SELECT "result" FROM "football_league_division_two" WHERE "game">6 AND "attendance">'12,782' AND "date"='5 december 1987';
## Task Generate a SQL query to answer the following question: `Which Result has a Game larger than 6, and an Attendance larger than 12,782, and a Date of 5 december 1987?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "football_league_division_two" ( "game" real, "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Result has a Game larger than 6, and an Attendance larger than 12,782, and a Date of 5 december 1987?`: ```sql
SELECT "result" FROM "football_league_division_two" WHERE "venue"='away' AND "game"<43 AND "opponent"='bournemouth';
## Task Generate a SQL query to answer the following question: `Which Result has a Venue of away, and a Game smaller than 43, and an Opponent of bournemouth?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "football_league_division_two" ( "game" real, "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Result has a Venue of away, and a Game smaller than 43, and an Opponent of bournemouth?`: ```sql
SELECT "result" FROM "football_league_division_two" WHERE "venue"='home' AND "date"='3 october 1987';
## Task Generate a SQL query to answer the following question: `Which Result has a Venue of home, and a Date of 3 october 1987?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "football_league_division_two" ( "game" real, "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Result has a Venue of home, and a Date of 3 october 1987?`: ```sql
SELECT "score" FROM "doubles" WHERE "year"='1993';
## Task Generate a SQL query to answer the following question: `What is the score of 1993?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles" ( "location" text, "year" text, "champion" text, "runner_up" text, "score" text, "name" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of 1993?`: ```sql
SELECT "name" FROM "doubles" WHERE "runner_up"='sania mirza elena vesnina';
## Task Generate a SQL query to answer the following question: `What is the Name when the runner-up was Sania Mirza Elena Vesnina?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles" ( "location" text, "year" text, "champion" text, "runner_up" text, "score" text, "name" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Name when the runner-up was Sania Mirza Elena Vesnina?`: ```sql
SELECT "name" FROM "doubles" WHERE "score"='6–3, 6–3';
## Task Generate a SQL query to answer the following question: `What is the name with a Score of 6–3, 6–3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles" ( "location" text, "year" text, "champion" text, "runner_up" text, "score" text, "name" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name with a Score of 6–3, 6–3?`: ```sql
SELECT "location" FROM "doubles" WHERE "year"='2009';
## Task Generate a SQL query to answer the following question: `What was the location in 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles" ( "location" text, "year" text, "champion" text, "runner_up" text, "score" text, "name" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the location in 2009?`: ```sql
SELECT "railway_number_s" FROM "first_conversion_period_1867_1887" WHERE "class"='d(rebuild)';
## Task Generate a SQL query to answer the following question: `What's the railway number of a D(rebuild) class?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_conversion_period_1867_1887" ( "class" text, "railway_number_s" text, "quantity_rebuilt" real, "rebuild_year_s" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the railway number of a D(rebuild) class?`: ```sql
SELECT MIN("quantity_rebuilt") FROM "first_conversion_period_1867_1887" WHERE "class"='t2a';
## Task Generate a SQL query to answer the following question: `What the least quantity having a T2A class?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_conversion_period_1867_1887" ( "class" text, "railway_number_s" text, "quantity_rebuilt" real, "rebuild_year_s" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What the least quantity having a T2A class?`: ```sql
SELECT SUM("lane") FROM "heat_3" WHERE "react"=0.185 AND "time"<20.9;
## Task Generate a SQL query to answer the following question: `Which lane did the swimmer who had a Reaction time of 0.185 and a time of 20.9 swim in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_3" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); ### SQL Given the database schema, here is the SQL query that answers `Which lane did the swimmer who had a Reaction time of 0.185 and a time of 20.9 swim in?`: ```sql
SELECT COUNT("time") FROM "heat_3" WHERE "nationality"='slovenia' AND "lane"<9;
## Task Generate a SQL query to answer the following question: `What was the 200-metre time for the swimmer from Slovenia in lane 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_3" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the 200-metre time for the swimmer from Slovenia in lane 9?`: ```sql
SELECT "athlete" FROM "heat_3" WHERE "time"<21.2 AND "lane"<7 AND "nationality"='dominica';
## Task Generate a SQL query to answer the following question: `Who was the swimmer from Dominica who had a time of 21.2 and swam in lane 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_3" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); ### SQL Given the database schema, here is the SQL query that answers `Who was the swimmer from Dominica who had a time of 21.2 and swam in lane 7?`: ```sql
SELECT "player" FROM "seventh_round" WHERE "pick">53 AND "position"='defensive tackle';
## Task Generate a SQL query to answer the following question: `What player had a pick higher than 53, and a position of defensive tackle?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seventh_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What player had a pick higher than 53, and a position of defensive tackle?`: ```sql
SELECT "team" FROM "seventh_round" WHERE "player"='jim garcia category:articles with hcards';
## Task Generate a SQL query to answer the following question: `What team is Jim Garcia category:Articles with Hcards on?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seventh_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What team is Jim Garcia category:Articles with Hcards on?`: ```sql
SELECT "pick" FROM "seventh_round" WHERE "college"='purdue';
## Task Generate a SQL query to answer the following question: `Who is the pick from the Purdue College?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seventh_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the pick from the Purdue College?`: ```sql
SELECT "marcin_do_ga_pol" FROM "records" WHERE "world_record"='olympic record' AND "snatch"='total';
## Task Generate a SQL query to answer the following question: `What shows for Marcin Dołęga ( POL )when the world record shows olympic record, and a Snatch of total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "snatch" text, "marcin_do_ga_pol" text, "199kg" text, "w_adys_awowo_poland" text ); ### SQL Given the database schema, here is the SQL query that answers `What shows for Marcin Dołęga ( POL )when the world record shows olympic record, and a Snatch of total?`: ```sql
SELECT "snatch" FROM "records" WHERE "marcin_do_ga_pol"='430kg';
## Task Generate a SQL query to answer the following question: `What is the snatch when Marcin Dołęga ( POL ) was 430kg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "snatch" text, "marcin_do_ga_pol" text, "199kg" text, "w_adys_awowo_poland" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the snatch when Marcin Dołęga ( POL ) was 430kg?`: ```sql
SELECT "w_adys_awowo_poland" FROM "records" WHERE "world_record"='clean & jerk';
## Task Generate a SQL query to answer the following question: `What shows for Władysławowo, Poland when the world record was clean & jerk?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "snatch" text, "marcin_do_ga_pol" text, "199kg" text, "w_adys_awowo_poland" text ); ### SQL Given the database schema, here is the SQL query that answers `What shows for Władysławowo, Poland when the world record was clean & jerk?`: ```sql
SELECT "w_adys_awowo_poland" FROM "records" WHERE "world_record"='olympic record' AND "marcin_do_ga_pol"='olympic standard' AND "snatch"='clean & jerk';
## Task Generate a SQL query to answer the following question: `What shows for Władysławowo, Poland when the world record shows olympic record, a Marcin Dołęga (POL) is olympic standard, and Snatch is clean & jerk?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "snatch" text, "marcin_do_ga_pol" text, "199kg" text, "w_adys_awowo_poland" text ); ### SQL Given the database schema, here is the SQL query that answers `What shows for Władysławowo, Poland when the world record shows olympic record, a Marcin Dołęga (POL) is olympic standard, and Snatch is clean & jerk?`: ```sql
SELECT "date" FROM "release_history" WHERE "catalog"='0-6700-30838-2-9';
## Task Generate a SQL query to answer the following question: `What date has 0-6700-30838-2-9 for a catalog?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); ### SQL Given the database schema, here is the SQL query that answers `What date has 0-6700-30838-2-9 for a catalog?`: ```sql
SELECT "date" FROM "release_history" WHERE "catalog"='reveal50cd/lp' AND "region"='united kingdom';
## Task Generate a SQL query to answer the following question: `What's the date in the United Kingdom having a catalog of reveal50cd/lp?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the date in the United Kingdom having a catalog of reveal50cd/lp?`: ```sql
SELECT "date" FROM "international_goals" WHERE "competition"='king''s cup 1996';
## Task Generate a SQL query to answer the following question: `What day was king's cup 1996?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What day was king's cup 1996?`: ```sql
SELECT "score" FROM "international_goals" WHERE "competition"='king''s cup 1996';
## Task Generate a SQL query to answer the following question: `What was the score for king's cup 1996?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score for king's cup 1996?`: ```sql
SELECT "result" FROM "international_goals" WHERE "score"='5-1';
## Task Generate a SQL query to answer the following question: `What was the result when the score was 5-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result when the score was 5-1?`: ```sql
SELECT "tournament" FROM "singles_performance_timeline" WHERE "2012"='a' AND "2010"='q2';
## Task Generate a SQL query to answer the following question: `What tournament had an A in 2012 and Q2 in 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What tournament had an A in 2012 and Q2 in 2010?`: ```sql
SELECT "2010" FROM "singles_performance_timeline" WHERE "2009"='q2';
## Task Generate a SQL query to answer the following question: `What's the 2010 when they had a Q2 in 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the 2010 when they had a Q2 in 2009?`: ```sql
SELECT "2012" FROM "singles_performance_timeline" WHERE "2008"='q3' AND "tournament"='wimbledon';
## Task Generate a SQL query to answer the following question: `What's the 2012 during Wimbledon and had a Q3 in 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the 2012 during Wimbledon and had a Q3 in 2008?`: ```sql
SELECT "tournament" FROM "singles_performance_timeline" WHERE "2012"='a' AND "2011"='a';
## Task Generate a SQL query to answer the following question: `What's the tournament name when they had an A in 2011 & 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the tournament name when they had an A in 2011 & 2012?`: ```sql
SELECT "2012" FROM "singles_performance_timeline" WHERE "2009"='205';
## Task Generate a SQL query to answer the following question: `What's the 2012 when 2009 was 205?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the 2012 when 2009 was 205?`: ```sql
SELECT COUNT("col_m") FROM "and" WHERE "prominence_m"='2,344';
## Task Generate a SQL query to answer the following question: `How much Col (m) has a Prominence (m) of 2,344?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "and" ( "peak" text, "country" text, "elevation_m" real, "prominence_m" real, "col_m" real ); ### SQL Given the database schema, here is the SQL query that answers `How much Col (m) has a Prominence (m) of 2,344?`: ```sql
SELECT AVG("prominence_m") FROM "and" WHERE "col_m"=350;
## Task Generate a SQL query to answer the following question: `Which Prominence (m) has a Col (m) of 350?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "and" ( "peak" text, "country" text, "elevation_m" real, "prominence_m" real, "col_m" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Prominence (m) has a Col (m) of 350?`: ```sql
SELECT MAX("elevation_m") FROM "and" WHERE "prominence_m"<'2,456' AND "peak"='mount kyllini' AND "col_m"<506;
## Task Generate a SQL query to answer the following question: `Which Elevation (m) has a Prominence (m) smaller than 2,456, and a Peak of mount kyllini, and a Col (m) smaller than 506?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "and" ( "peak" text, "country" text, "elevation_m" real, "prominence_m" real, "col_m" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Elevation (m) has a Prominence (m) smaller than 2,456, and a Peak of mount kyllini, and a Col (m) smaller than 506?`: ```sql
SELECT "athlete" FROM "heat_4" WHERE "country"='lithuania';
## Task Generate a SQL query to answer the following question: `Who was the athlete from Lithuania?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_4" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the athlete from Lithuania?`: ```sql
SELECT "votes" FROM "fairfax_county_board_of_supervisors_resu" WHERE "opponent"='jeannemarie devolites davis' AND "year"='1995-special';
## Task Generate a SQL query to answer the following question: `How many votes did Jeannemarie Devolites Davis get in 1995-Special?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fairfax_county_board_of_supervisors_resu" ( "year" text, "subject" text, "party" text, "votes" real, "opponent" text ); ### SQL Given the database schema, here is the SQL query that answers `How many votes did Jeannemarie Devolites Davis get in 1995-Special?`: ```sql
SELECT "subject" FROM "fairfax_county_board_of_supervisors_resu" WHERE "year"='2007';
## Task Generate a SQL query to answer the following question: `Who was the subject for the year of 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fairfax_county_board_of_supervisors_resu" ( "year" text, "subject" text, "party" text, "votes" real, "opponent" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the subject for the year of 2007?`: ```sql
SELECT "party" FROM "fairfax_county_board_of_supervisors_resu" WHERE "votes">'4,478';
## Task Generate a SQL query to answer the following question: `Which party has a voting total greater than 4,478?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fairfax_county_board_of_supervisors_resu" ( "year" text, "subject" text, "party" text, "votes" real, "opponent" text ); ### SQL Given the database schema, here is the SQL query that answers `Which party has a voting total greater than 4,478?`: ```sql
SELECT "type" FROM "in" WHERE "nat"='geo';
## Task Generate a SQL query to answer the following question: `Which Type has a Nat of geo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "ends" real, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Type has a Nat of geo?`: ```sql
SELECT "moving_from" FROM "in" WHERE "nat"='ned';
## Task Generate a SQL query to answer the following question: `Which Moving from has a Nat of ned?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "ends" real, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Moving from has a Nat of ned?`: ```sql
SELECT MAX("ends") FROM "in" WHERE "name"='zambrano';
## Task Generate a SQL query to answer the following question: `Which Ends have a Name of zambrano?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "ends" real, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Ends have a Name of zambrano?`: ```sql
SELECT "transfer_fee" FROM "in" WHERE "moving_from"='youth system' AND "nat"='mar';
## Task Generate a SQL query to answer the following question: `Which Transfer fee has a Moving from of youth system, and a Nat of mar?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "ends" real, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Transfer fee has a Moving from of youth system, and a Nat of mar?`: ```sql
SELECT "transfer_fee" FROM "in" WHERE "ends">2011 AND "moving_from"='psv';
## Task Generate a SQL query to answer the following question: `Which Transfer fee has Ends larger than 2011, and a Moving from of psv?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "ends" real, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Transfer fee has Ends larger than 2011, and a Moving from of psv?`: ```sql
SELECT "result" FROM "equestrian" WHERE "horse"='toscane' AND "event"='freestyle test';
## Task Generate a SQL query to answer the following question: `What is the result for the Toscane Horse in the freestyle test?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "equestrian" ( "athlete" text, "class" text, "horse" text, "event" text, "result" text, "rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result for the Toscane Horse in the freestyle test?`: ```sql
SELECT "horse" FROM "equestrian" WHERE "result"='66.452';
## Task Generate a SQL query to answer the following question: `What horse has a 66.452 result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "equestrian" ( "athlete" text, "class" text, "horse" text, "event" text, "result" text, "rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What horse has a 66.452 result?`: ```sql
SELECT "event" FROM "equestrian" WHERE "athlete"='sjerstin vermeulen' AND "result"='66.452';
## Task Generate a SQL query to answer the following question: `What event did Sjerstin Vermeulen receive a 66.452 result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "equestrian" ( "athlete" text, "class" text, "horse" text, "event" text, "result" text, "rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What event did Sjerstin Vermeulen receive a 66.452 result?`: ```sql
SELECT "class" FROM "equestrian" WHERE "event"='championship test' AND "result"='62.516';
## Task Generate a SQL query to answer the following question: `What class had a Championship Test event with a 62.516 result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "equestrian" ( "athlete" text, "class" text, "horse" text, "event" text, "result" text, "rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What class had a Championship Test event with a 62.516 result?`: ```sql
SELECT "horse" FROM "equestrian" WHERE "result"='65.863';
## Task Generate a SQL query to answer the following question: `What horse has a 65.863 result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "equestrian" ( "athlete" text, "class" text, "horse" text, "event" text, "result" text, "rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What horse has a 65.863 result?`: ```sql
SELECT "displacement" FROM "engines" WHERE "model"='1400';
## Task Generate a SQL query to answer the following question: `What is the displacement for the model 1400?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "model" text, "years" text, "engine" text, "displacement" text, "power" text, "fuel_system" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the displacement for the model 1400?`: ```sql
SELECT "displacement" FROM "engines" WHERE "fuel_system"='carburettor' AND "power"='ps (kw; hp)' AND "model"='2000';
## Task Generate a SQL query to answer the following question: `What is the displacement when the fuel system is carburettor, and a power of ps (kw; hp), and also has a model of 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "model" text, "years" text, "engine" text, "displacement" text, "power" text, "fuel_system" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the displacement when the fuel system is carburettor, and a power of ps (kw; hp), and also has a model of 2000?`: ```sql
SELECT "engine" FROM "engines" WHERE "model"='1600' AND "years"='1975-84';
## Task Generate a SQL query to answer the following question: `What engine with the years of 1975-84 has a model of 1600?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "model" text, "years" text, "engine" text, "displacement" text, "power" text, "fuel_system" text ); ### SQL Given the database schema, here is the SQL query that answers `What engine with the years of 1975-84 has a model of 1600?`: ```sql
SELECT "displacement" FROM "engines" WHERE "model"='2000';
## Task Generate a SQL query to answer the following question: `What displacement has a model of 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "model" text, "years" text, "engine" text, "displacement" text, "power" text, "fuel_system" text ); ### SQL Given the database schema, here is the SQL query that answers `What displacement has a model of 2000?`: ```sql
SELECT "engine" FROM "engines" WHERE "years"='1975-84' AND "displacement"='1585cc';
## Task Generate a SQL query to answer the following question: `What engine with years of 1975-84 has a displacement of 1585cc?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "model" text, "years" text, "engine" text, "displacement" text, "power" text, "fuel_system" text ); ### SQL Given the database schema, here is the SQL query that answers `What engine with years of 1975-84 has a displacement of 1585cc?`: ```sql
SELECT "power" FROM "engines" WHERE "years"='1975-84';
## Task Generate a SQL query to answer the following question: `What is the power for the years 1975-84?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "model" text, "years" text, "engine" text, "displacement" text, "power" text, "fuel_system" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the power for the years 1975-84?`: ```sql
SELECT "2nd_leg" FROM "al_ahly_results" WHERE "team_2"='teram';
## Task Generate a SQL query to answer the following question: `What is the 2nd leg in match with team 2 of Teram?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "al_ahly_results" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2nd leg in match with team 2 of Teram?`: ```sql
SELECT "result" FROM "schedule" WHERE "date"='december 15, 2002';
## Task Generate a SQL query to answer the following question: `What was the result of the December 15, 2002 game?` ### 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, "record" text, "tv_time" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result of the December 15, 2002 game?`: ```sql
SELECT "date" FROM "schedule" WHERE "attendance"='69,024';
## Task Generate a SQL query to answer the following question: `What date was the game that was attended by 69,024?` ### 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, "record" text, "tv_time" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the game that was attended by 69,024?`: ```sql
SELECT "date" FROM "schedule" WHERE "week"=17;
## Task Generate a SQL query to answer the following question: `On what date was the week 17 game?` ### 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, "record" text, "tv_time" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date was the week 17 game?`: ```sql
SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_w" WHERE "2008_club"='istres volleyball';
## Task Generate a SQL query to answer the following question: `What is the name of the 2008 club for Istres Volleyball?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the 2008 club for Istres Volleyball?`: ```sql
SELECT "model" FROM "p_series_1939_1944" WHERE "seats"=29 AND "built"='1941–1942';
## Task Generate a SQL query to answer the following question: `What is the Model of the Engine with 29 Seats Built in 1941–1942?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "p_series_1939_1944" ( "model" text, "built" text, "quantity" real, "seats" real, "length" text, "engine" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Model of the Engine with 29 Seats Built in 1941–1942?`: ```sql
SELECT "quantity" FROM "p_series_1939_1944" WHERE "model"='pg-2901';
## Task Generate a SQL query to answer the following question: `What is the Quantity of the engine Model PG-2901?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "p_series_1939_1944" ( "model" text, "built" text, "quantity" real, "seats" real, "length" text, "engine" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Quantity of the engine Model PG-2901?`: ```sql
SELECT "draws_pct" FROM "by_clubs" WHERE "for_against_ratio"='0.67' AND "wins"=1;
## Task Generate a SQL query to answer the following question: `What is the % of draws with an against ratio of 0.67 and 1 win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_clubs" ( "team" text, "matches" real, "wins" real, "wins_pct" text, "draws" real, "draws_pct" text, "losses" real, "losses_pct" text, "against" real, "for_against_ratio" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the % of draws with an against ratio of 0.67 and 1 win?`: ```sql
SELECT "matches" FROM "by_clubs" WHERE "draws_pct"='50%' AND "team"='milan';
## Task Generate a SQL query to answer the following question: `What are the matches with a 50% of draws for Team Milan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_clubs" ( "team" text, "matches" real, "wins" real, "wins_pct" text, "draws" real, "draws_pct" text, "losses" real, "losses_pct" text, "against" real, "for_against_ratio" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the matches with a 50% of draws for Team Milan?`: ```sql