output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "date" FROM "round_3" WHERE "away_team"='footscray';
## Task Generate a SQL query to answer the following question: `On what date is Footscray the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date is Footscray the away team?`: ```sql
SELECT MAX("crowd") FROM "round_3" WHERE "away_team"='footscray';
## Task Generate a SQL query to answer the following question: `What was the crowd population for Footscray as an away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the crowd population for Footscray as an away team?`: ```sql
SELECT "date" FROM "round_3" WHERE "crowd">'16,570' AND "away_team"='footscray';
## Task Generate a SQL query to answer the following question: `On what date was there both a crowd larger than 16,570 and the away team was Footscray?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date was there both a crowd larger than 16,570 and the away team was Footscray?`: ```sql
SELECT SUM("num_of_bids") FROM "record_by_conference" WHERE "win_pct"='.500' AND "conference"='ohio valley';
## Task Generate a SQL query to answer the following question: `How many bids were there for the .500 win percentage in the Ohio Valley conference?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" text, "round_of_32" text, "sweet_sixteen" text, "elite_eight" text, "final_four" text, "championship_game" text ); ### SQL Given the database schema, here is the SQL query that answers `How many bids were there for the .500 win percentage in the Ohio Valley conference?`: ```sql
SELECT "championship_game" FROM "record_by_conference" WHERE "final_four"='1' AND "conference"='american south';
## Task Generate a SQL query to answer the following question: `What is the Championship Game when the Final Four is 1 and the conference is American South?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" text, "round_of_32" text, "sweet_sixteen" text, "elite_eight" text, "final_four" text, "championship_game" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Championship Game when the Final Four is 1 and the conference is American South?`: ```sql
SELECT "final_four" FROM "record_by_conference" WHERE "win_pct"='.750';
## Task Generate a SQL query to answer the following question: `What is the Final Four with a win percentage of .750?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" text, "round_of_32" text, "sweet_sixteen" text, "elite_eight" text, "final_four" text, "championship_game" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Final Four with a win percentage of .750?`: ```sql
SELECT "date" FROM "round_18" WHERE "venue"='arden street oval';
## Task Generate a SQL query to answer the following question: `What is the date of the game at the Arden Street Oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the game at the Arden Street Oval?`: ```sql
SELECT "date" FROM "round_18" WHERE "home_team_score"='8.7 (55)';
## Task Generate a SQL query to answer the following question: `What is the date where the home team scores 8.7 (55)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date where the home team scores 8.7 (55)?`: ```sql
SELECT "date" FROM "round_5" WHERE "venue"='kardinia park';
## Task Generate a SQL query to answer the following question: `What is the date of the game when the venue is Kardinia Park?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the game when the venue is Kardinia Park?`: ```sql
SELECT SUM("crowd") FROM "round_5" WHERE "away_team_score"='4.8 (32)';
## Task Generate a SQL query to answer the following question: `What is the total of the crowd when the away team score is 4.8 (32)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total of the crowd when the away team score is 4.8 (32)?`: ```sql
SELECT "date" FROM "round_5" WHERE "home_team_score"='11.11 (77)';
## Task Generate a SQL query to answer the following question: `What is the date of the game when the home team score is 11.11 (77)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the game when the home team score is 11.11 (77)?`: ```sql
SELECT "away_team" FROM "round_1" WHERE "home_team"='st kilda';
## Task Generate a SQL query to answer the following question: `Which away team played against the home team of St Kilda?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which away team played against the home team of St Kilda?`: ```sql
SELECT "home_team" FROM "round_1" WHERE "away_team"='melbourne';
## Task Generate a SQL query to answer the following question: `Which home team competed against the away team of Melbourne?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which home team competed against the away team of Melbourne?`: ```sql
SELECT "away_team" FROM "round_1" WHERE "home_team_score"='15.14 (104)';
## Task Generate a SQL query to answer the following question: `Which away team resulted in a 15.14 (104) score for the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which away team resulted in a 15.14 (104) score for the home team?`: ```sql
SELECT "venue" FROM "round_1" WHERE "away_team_score"='9.12 (66)';
## Task Generate a SQL query to answer the following question: `Which venue hosted an away team with a score of 9.12 (66)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which venue hosted an away team with a score of 9.12 (66)?`: ```sql
SELECT "venue" FROM "round_1" WHERE "home_team_score"='6.12 (48)';
## Task Generate a SQL query to answer the following question: `What venue hosted a home team with a score of 6.12 (48)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What venue hosted a home team with a score of 6.12 (48)?`: ```sql
SELECT "result" FROM "schedule" WHERE "week"='1' AND "opponent"='bye';
## Task Generate a SQL query to answer the following question: `What was the result of week 1 and the opponent was bye?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "kickoff" text, "game_site" text, "record" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result of week 1 and the opponent was bye?`: ```sql
SELECT "game_site" FROM "schedule" WHERE "record"='6-2';
## Task Generate a SQL query to answer the following question: `What is the site of the game with a Record of 6-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "kickoff" text, "game_site" text, "record" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the site of the game with a Record of 6-2?`: ```sql
SELECT "week" FROM "schedule" WHERE "record"='12-2';
## Task Generate a SQL query to answer the following question: `What week has a Record of 12-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "kickoff" text, "game_site" text, "record" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What week has a Record of 12-2?`: ```sql
SELECT "city" FROM "buildings_above_140m" WHERE "name"='sky tower';
## Task Generate a SQL query to answer the following question: `What city has Sky Tower?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "buildings_above_140m" ( "rank" text, "name" text, "city" text, "height_in_m_ft" text, "floors" real, "year_built" real ); ### SQL Given the database schema, here is the SQL query that answers `What city has Sky Tower?`: ```sql
SELECT "name" FROM "buildings_above_140m" WHERE "year_built"<1973 AND "city"='courbevoie';
## Task Generate a SQL query to answer the following question: `What is the name of a building in Courbevoie built before 1973?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "buildings_above_140m" ( "rank" text, "name" text, "city" text, "height_in_m_ft" text, "floors" real, "year_built" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of a building in Courbevoie built before 1973?`: ```sql
SELECT "away_team" FROM "round_4" WHERE "venue"='lake oval';
## Task Generate a SQL query to answer the following question: `Who was the away team at Lake Oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the away team at Lake Oval?`: ```sql
SELECT "home_team_score" FROM "round_4" WHERE "home_team"='hawthorn';
## Task Generate a SQL query to answer the following question: `What was the home team score for the game where Hawthorn is the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the home team score for the game where Hawthorn is the home team?`: ```sql
SELECT "home_team" FROM "round_4" WHERE "home_team_score"='14.19 (103)';
## Task Generate a SQL query to answer the following question: `Who is the home team that scored 14.19 (103)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the home team that scored 14.19 (103)?`: ```sql
SELECT "date" FROM "round_4" WHERE "away_team"='essendon';
## Task Generate a SQL query to answer the following question: `What is the date of the game where Essendon is the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the game where Essendon is the away team?`: ```sql
SELECT "crowd" FROM "round_10" WHERE "home_team_score"='4.10 (34)';
## Task Generate a SQL query to answer the following question: `What is the average crowd size when the home side scores 4.10 (34)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average crowd size when the home side scores 4.10 (34)?`: ```sql
SELECT "home_team_score" FROM "round_10" WHERE "away_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `What is the home team's score when the away team is south melbourne?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the home team's score when the away team is south melbourne?`: ```sql
SELECT "venue" FROM "round_10" WHERE "home_team"='st kilda';
## Task Generate a SQL query to answer the following question: `What venue featured the home side of st kilda?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What venue featured the home side of st kilda?`: ```sql
SELECT "metres" FROM "timeline_of_tallest_buildings" WHERE "feet">850;
## Task Generate a SQL query to answer the following question: `How many metres tall is the building that is larger than 850 feet tall?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "city" text, "years_as_tallest" text, "metres" real, "feet" real, "floors" real ); ### SQL Given the database schema, here is the SQL query that answers `How many metres tall is the building that is larger than 850 feet tall?`: ```sql
SELECT "home_team_score" FROM "round_15" WHERE "home_team"='geelong';
## Task Generate a SQL query to answer the following question: `What was Geelong's score when they were the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Geelong's score when they were the home team?`: ```sql
SELECT "venue" FROM "round_15" WHERE "away_team"='collingwood';
## Task Generate a SQL query to answer the following question: `Where was the game when Collingwood was the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the game when Collingwood was the home team?`: ```sql
SELECT "away_team" FROM "round_15" WHERE "away_team_score"='8.12 (60)';
## Task Generate a SQL query to answer the following question: `Who was the away team that scored 8.12 (60)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the away team that scored 8.12 (60)?`: ```sql
SELECT SUM("total_rebounds") FROM "rebounds" WHERE "player"='peter woolfolk';
## Task Generate a SQL query to answer the following question: `What was Peter Woolfolk's Total Rebound average?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rebounds" ( "rank" real, "player" text, "years" text, "games" real, "reb_avg" real, "total_rebounds" real ); ### SQL Given the database schema, here is the SQL query that answers `What was Peter Woolfolk's Total Rebound average?`: ```sql
SELECT "result" FROM "exhibition_schedule" WHERE "week"=3;
## Task Generate a SQL query to answer the following question: `What was week 3 score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "exhibition_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was week 3 score?`: ```sql
SELECT "city" FROM "round_1" WHERE "crowd">'11,346' AND "score"='24-16';
## Task Generate a SQL query to answer the following question: `What city had a crowd larger than 11,346 and score of 24-16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "date" text, "result" text, "score" text, "stadium" text, "city" text, "crowd" real ); ### SQL Given the database schema, here is the SQL query that answers `What city had a crowd larger than 11,346 and score of 24-16?`: ```sql
SELECT "result" FROM "round_1" WHERE "stadium"='odsal stadium';
## Task Generate a SQL query to answer the following question: `What is the result of the game at Odsal Stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "date" text, "result" text, "score" text, "stadium" text, "city" text, "crowd" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the result of the game at Odsal Stadium?`: ```sql
SELECT "championship" FROM "wins_6" WHERE "margin"='10 strokes';
## Task Generate a SQL query to answer the following question: `Which championship had a margin of 10 strokes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_6" ( "year" real, "championship" text, "winning_score" text, "margin" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `Which championship had a margin of 10 strokes?`: ```sql
SELECT "runner_s_up" FROM "wins_6" WHERE "margin"='10 strokes';
## Task Generate a SQL query to answer the following question: `Which runner-up player(s) had a margin of 10 strokes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_6" ( "year" real, "championship" text, "winning_score" text, "margin" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `Which runner-up player(s) had a margin of 10 strokes?`: ```sql
SELECT MAX("year") FROM "wins_6" WHERE "runner_s_up"='kathy ahern';
## Task Generate a SQL query to answer the following question: `What was the most recent year that Kathy Ahern was a runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_6" ( "year" real, "championship" 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 most recent year that Kathy Ahern was a runner-up?`: ```sql
SELECT "rtm_build" FROM "windows_nt" WHERE "name"='windows home server 2011';
## Task Generate a SQL query to answer the following question: `What is the RTM build of the Windows Home Server 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "windows_nt" ( "name" text, "release_date" text, "rtm_build" text, "current_version" text, "status_support" text, "license" text, "based_on_kernel" text, "supported_architectures" text, "os_type" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the RTM build of the Windows Home Server 2011?`: ```sql
SELECT "current_version" FROM "windows_nt" WHERE "rtm_build"='9200' AND "name"='windows 8';
## Task Generate a SQL query to answer the following question: `What is the current version of windows 8 with an RTM build of 9200?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "windows_nt" ( "name" text, "release_date" text, "rtm_build" text, "current_version" text, "status_support" text, "license" text, "based_on_kernel" text, "supported_architectures" text, "os_type" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the current version of windows 8 with an RTM build of 9200?`: ```sql
SELECT "home_team" FROM "round_11" WHERE "home_team_score"='14.14 (98)';
## Task Generate a SQL query to answer the following question: `What home team scored 14.14 (98)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What home team scored 14.14 (98)?`: ```sql
SELECT "home_team_score" FROM "round_11" WHERE "away_team"='geelong';
## Task Generate a SQL query to answer the following question: `What was the home team's score that played Geelong?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the home team's score that played Geelong?`: ```sql
SELECT "venue" FROM "round_11" WHERE "home_team_score"='12.10 (82)';
## Task Generate a SQL query to answer the following question: `At what venue did the home team score 12.10 (82)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `At what venue did the home team score 12.10 (82)?`: ```sql
SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "opponent"='kevin roddy';
## Task Generate a SQL query to answer the following question: `How many rounds were fought with opponent Kevin Roddy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `How many rounds were fought with opponent Kevin Roddy?`: ```sql
SELECT "record" FROM "game_by_game_results" WHERE "attendance"='19,887';
## Task Generate a SQL query to answer the following question: `What was the score when attendance was 19,887?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_by_game_results" ( "week" text, "opponent" text, "result" text, "stadium" text, "record" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score when attendance was 19,887?`: ```sql
SELECT "week" FROM "game_by_game_results" WHERE "attendance"='bye';
## Task Generate a SQL query to answer the following question: `What week was the Bye attendance week?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_by_game_results" ( "week" text, "opponent" text, "result" text, "stadium" text, "record" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What week was the Bye attendance week?`: ```sql
SELECT "record" FROM "game_by_game_results" WHERE "opponent"='denver broncos';
## Task Generate a SQL query to answer the following question: `Who won when the Patriots played the Denver Broncos?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_by_game_results" ( "week" text, "opponent" text, "result" text, "stadium" text, "record" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won when the Patriots played the Denver Broncos?`: ```sql
SELECT "record" FROM "game_by_game_results" WHERE "attendance"='8,000';
## Task Generate a SQL query to answer the following question: `Who won when the attendance was 8,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_by_game_results" ( "week" text, "opponent" text, "result" text, "stadium" text, "record" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won when the attendance was 8,000?`: ```sql
SELECT "programming" FROM "television" WHERE "operator"='ivptc';
## Task Generate a SQL query to answer the following question: `What channel has an operator of ivptc?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television" ( "band_ch" real, "call" text, "city" text, "owner" text, "operator" text, "virt_ch" real, "nickname" text, "programming" text ); ### SQL Given the database schema, here is the SQL query that answers `What channel has an operator of ivptc?`: ```sql
SELECT "home_team_score" FROM "round_8" WHERE "home_team"='richmond';
## Task Generate a SQL query to answer the following question: `What was the score when Richmond payed as the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score when Richmond payed as the home team?`: ```sql
SELECT "home_team" FROM "round_8" WHERE "away_team"='carlton';
## Task Generate a SQL query to answer the following question: `Who played against Carlton as the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who played against Carlton as the home team?`: ```sql
SELECT SUM("crowd") FROM "round_8" WHERE "away_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `What was the attendance when South Melbourne was the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance when South Melbourne was the away team?`: ```sql
SELECT "home_team_score" FROM "round_8" WHERE "venue"='kardinia park';
## Task Generate a SQL query to answer the following question: `Who was the home team when the VFL played Kardinia Park?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the home team when the VFL played Kardinia Park?`: ```sql
SELECT "silver" FROM "medal_table" WHERE "bronze"=32;
## Task Generate a SQL query to answer the following question: `How many silver medals did the nation who received 32 bronze medals receive?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many silver medals did the nation who received 32 bronze medals receive?`: ```sql
SELECT MAX("grid") FROM "race_1_results" WHERE "time_retired"='52:52.1881';
## Task Generate a SQL query to answer the following question: `What is the highest numbered grid with a time or retired time of 52:52.1881?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_1_results" ( "name" text, "team" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest numbered grid with a time or retired time of 52:52.1881?`: ```sql
SELECT "name" FROM "race_1_results" WHERE "time_retired"='52:56.4653';
## Task Generate a SQL query to answer the following question: `Who recorded a time or retired time of 52:56.4653?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_1_results" ( "name" text, "team" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `Who recorded a time or retired time of 52:56.4653?`: ```sql
SELECT AVG("grid") FROM "race_1_results" WHERE "team"='paul cruickshank racing' AND "laps"<27;
## Task Generate a SQL query to answer the following question: `What is the average grid number for paul cruickshank racing with less than 27 laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_1_results" ( "name" text, "team" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average grid number for paul cruickshank racing with less than 27 laps?`: ```sql
SELECT MIN("total") FROM "medal_table" WHERE "silver">6 AND "bronze"=6 AND "gold"<16;
## Task Generate a SQL query to answer the following question: `What is the lowest total metals of a team with more than 6 silver, 6 bronze, and fewer than 16 gold medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest total metals of a team with more than 6 silver, 6 bronze, and fewer than 16 gold medals?`: ```sql
SELECT MIN("09_10_points") FROM "arnold_today" WHERE "09_10_graduation"='85%';
## Task Generate a SQL query to answer the following question: `What 09-10 class, with a graduate percentage of 85% had the least amount of points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "arnold_today" ( "school" text, "09_10_fcat" text, "09_10_points" real, "09_10_graduation" text, "08_09_fcat" text ); ### SQL Given the database schema, here is the SQL query that answers `What 09-10 class, with a graduate percentage of 85% had the least amount of points?`: ```sql
SELECT SUM("crowd") FROM "round_10" WHERE "venue"='brunswick street oval';
## Task Generate a SQL query to answer the following question: `What is the crowd size of the game at Brunswick Street Oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the crowd size of the game at Brunswick Street Oval?`: ```sql
SELECT "home_team_score" FROM "round_10" WHERE "away_team"='footscray';
## Task Generate a SQL query to answer the following question: `Who was the home team of the game where Footscray is the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the home team of the game where Footscray is the away team?`: ```sql
SELECT "away_team" FROM "round_10" WHERE "away_team_score"='7.8 (50)';
## Task Generate a SQL query to answer the following question: `Who is the away team with a score of 7.8 (50)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the away team with a score of 7.8 (50)?`: ```sql
SELECT AVG("week") FROM "schedule" WHERE "date"='september 3, 2000';
## Task Generate a SQL query to answer the following question: `What week has a date of September 3, 2000?` ### 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, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What week has a date of September 3, 2000?`: ```sql
SELECT "home_team" FROM "round_17" WHERE "away_team"='hawthorn';
## Task Generate a SQL query to answer the following question: `Who was the home team when Hawthorn was the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the home team when Hawthorn was the away team?`: ```sql
SELECT "away_team" FROM "round_17" WHERE "home_team_score"='11.14 (80)';
## Task Generate a SQL query to answer the following question: `Who was the away team when the home team scored 11.14 (80)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the away team when the home team scored 11.14 (80)?`: ```sql
SELECT "away_team_score" FROM "round_17" WHERE "away_team"='fitzroy';
## Task Generate a SQL query to answer the following question: `What was Fitzroy's score when they were the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Fitzroy's score when they were the away team?`: ```sql
SELECT "speed" FROM "1971_isle_of_man_production_750_cc_tt_fi" WHERE "team"='bmw' AND "rank"=7;
## Task Generate a SQL query to answer the following question: `What was #7 BMW's speed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1971_isle_of_man_production_750_cc_tt_fi" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What was #7 BMW's speed?`: ```sql
SELECT "crowd" FROM "round_1" WHERE "home_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `What was the crowd size in the match South Melbourne played at home?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the crowd size in the match South Melbourne played at home?`: ```sql
SELECT "away_team_score" FROM "round_1" WHERE "venue"='western oval';
## Task Generate a SQL query to answer the following question: `What was the away team's score at Western Oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the away team's score at Western Oval?`: ```sql
SELECT "date" FROM "round_1" WHERE "away_team_score"='9.16 (70)';
## Task Generate a SQL query to answer the following question: `What was the date when the away team scored 9.16 (70)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date when the away team scored 9.16 (70)?`: ```sql
SELECT COUNT("crowd") FROM "round_1" WHERE "away_team"='essendon';
## Task Generate a SQL query to answer the following question: `What was the crowd size when Essendon was the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the crowd size when Essendon was the away team?`: ```sql
SELECT "home_team" FROM "round_1" WHERE "crowd">'10,000' AND "home_team_score"='13.13 (91)';
## Task Generate a SQL query to answer the following question: `What was the home team that scored 13.13 (91) in front of a crowd larger than 10,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the home team that scored 13.13 (91) in front of a crowd larger than 10,000?`: ```sql
SELECT "date" FROM "women" WHERE "time"='16:24.12';
## Task Generate a SQL query to answer the following question: `On what date was the time of 16:24.12 achieved?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "event" text, "time" text, "nationality" text, "date" text, "meet" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date was the time of 16:24.12 achieved?`: ```sql
SELECT AVG("year") FROM "game_results" WHERE "team"='capital city giants' AND "score"='8-0';
## Task Generate a SQL query to answer the following question: `What year did the Capital City Giants have a game with the final score of 8-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_results" ( "year" real, "game" text, "team" text, "runner_up" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What year did the Capital City Giants have a game with the final score of 8-0?`: ```sql
SELECT "runner_up" FROM "game_results" WHERE "score"='6-0';
## Task Generate a SQL query to answer the following question: `What team lost a game by a score of 6-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_results" ( "year" real, "game" text, "team" text, "runner_up" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What team lost a game by a score of 6-0?`: ```sql
SELECT "team" FROM "game_results" WHERE "game"='capital bowl iv';
## Task Generate a SQL query to answer the following question: `What teams played in Capital Bowl IV?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_results" ( "year" real, "game" text, "team" text, "runner_up" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What teams played in Capital Bowl IV?`: ```sql
SELECT "team" FROM "game_results" WHERE "runner_up"='capital city giants';
## Task Generate a SQL query to answer the following question: `What team defeated the Capital City Giants?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_results" ( "year" real, "game" text, "team" text, "runner_up" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What team defeated the Capital City Giants?`: ```sql
SELECT "total_tenure_rank" FROM "senate_time" WHERE "uninterrupted_time"='49 years, 349 days';
## Task Generate a SQL query to answer the following question: `What is the total tenure rank of the person with an uninterrupted time of 49 years, 349 days?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate_time" ( "total_tenure_rank" real, "uninterrupted_rank" real, "name" text, "state_represented" text, "total_tenure_time" text, "uninterrupted_time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total tenure rank of the person with an uninterrupted time of 49 years, 349 days?`: ```sql
SELECT "total_tenure_time" FROM "senate_time" WHERE "uninterrupted_rank">4 AND "total_tenure_rank">9 AND "name"='warren magnuson';
## Task Generate a SQL query to answer the following question: `What is the total tenure time of Warren Magnuson, who had an uninterrupted rank larger than 4 and a total tenure rank larger than 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate_time" ( "total_tenure_rank" real, "uninterrupted_rank" real, "name" text, "state_represented" text, "total_tenure_time" text, "uninterrupted_time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total tenure time of Warren Magnuson, who had an uninterrupted rank larger than 4 and a total tenure rank larger than 9?`: ```sql
SELECT COUNT("round") FROM "2004_new_england_patriots_draft_selectio" WHERE "overall"=63;
## Task Generate a SQL query to answer the following question: `What round was the overall 63 drafted?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_new_england_patriots_draft_selectio" ( "round" real, "overall" real, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What round was the overall 63 drafted?`: ```sql
SELECT "in_swedish" FROM "regions" WHERE "in_english"='south karelia';
## Task Generate a SQL query to answer the following question: `What is the Swedish name for South Karelia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regions" ( "in_english" text, "in_finnish" text, "in_swedish" text, "capital" text, "regional_state_administrative_agency" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Swedish name for South Karelia?`: ```sql
SELECT "home_team" FROM "round_1" WHERE "away_team_score"='15.12 (102)';
## Task Generate a SQL query to answer the following question: `What was the home team in the match where the away team scored 15.12 (102)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the home team in the match where the away team scored 15.12 (102)?`: ```sql
SELECT "home_team" FROM "round_1" WHERE "venue"='arden street oval';
## Task Generate a SQL query to answer the following question: `What home team plays at Arden Street Oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What home team plays at Arden Street Oval?`: ```sql
SELECT "jump_3" FROM "final_round" WHERE "jump_2"='7.06';
## Task Generate a SQL query to answer the following question: `Who has a Jump 2 of 7.06, and what is this person's Jump 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "athlete_name" text, "jump_1" text, "jump_2" text, "jump_3" text, "best_jump" text ); ### SQL Given the database schema, here is the SQL query that answers `Who has a Jump 2 of 7.06, and what is this person's Jump 3?`: ```sql
SELECT "best_jump" FROM "final_round" WHERE "jump_1"='x' AND "jump_2"='7.28';
## Task Generate a SQL query to answer the following question: `Who has an x under Jump 1, a Jump 2 of 7.28, and what is this person's Best Jump?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "athlete_name" text, "jump_1" text, "jump_2" text, "jump_3" text, "best_jump" text ); ### SQL Given the database schema, here is the SQL query that answers `Who has an x under Jump 1, a Jump 2 of 7.28, and what is this person's Best Jump?`: ```sql
SELECT "jump_2" FROM "final_round" WHERE "jump_3"='7.77';
## Task Generate a SQL query to answer the following question: `What is the Jump 2 of the person that has a Jump 3 of 7.77?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "athlete_name" text, "jump_1" text, "jump_2" text, "jump_3" text, "best_jump" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Jump 2 of the person that has a Jump 3 of 7.77?`: ```sql
SELECT "jump_2" FROM "final_round" WHERE "jump_1"='7.14';
## Task Generate a SQL query to answer the following question: `What is the Jump 2 of the person that has a Jump 1 of 7.14` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "athlete_name" text, "jump_1" text, "jump_2" text, "jump_3" text, "best_jump" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Jump 2 of the person that has a Jump 1 of 7.14`: ```sql
SELECT "champion" FROM "pac_10_12_tournament" WHERE "city"='tucson, arizona';
## Task Generate a SQL query to answer the following question: `Which player from Tucson, Arizona won the Championship?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pac_10_12_tournament" ( "year" real, "champion" text, "score" text, "runner_up" text, "arena" text, "city" text, "tournament_mvp" text ); ### SQL Given the database schema, here is the SQL query that answers `Which player from Tucson, Arizona won the Championship?`: ```sql
SELECT "score" FROM "pac_10_12_tournament" WHERE "city"='inglewood, california';
## Task Generate a SQL query to answer the following question: `What was the final score of the player from Inglewood, California?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pac_10_12_tournament" ( "year" real, "champion" text, "score" text, "runner_up" text, "arena" text, "city" text, "tournament_mvp" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the final score of the player from Inglewood, California?`: ```sql
SELECT "name" FROM "le_tour_de_pilipinas_padyak_pinoy_fed_ex" WHERE "date"='cancelled';
## Task Generate a SQL query to answer the following question: `What tour was cancelled?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "le_tour_de_pilipinas_padyak_pinoy_fed_ex" ( "year" real, "name" text, "date" text, "stages" text, "distance" text, "winner" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What tour was cancelled?`: ```sql
SELECT "winner" FROM "le_tour_de_pilipinas_padyak_pinoy_fed_ex" WHERE "name"='fedex tour of calabarzon';
## Task Generate a SQL query to answer the following question: `Who won the Fedex tour of Calabarzon?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "le_tour_de_pilipinas_padyak_pinoy_fed_ex" ( "year" real, "name" text, "date" text, "stages" text, "distance" text, "winner" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won the Fedex tour of Calabarzon?`: ```sql
SELECT COUNT("year") FROM "le_tour_de_pilipinas_padyak_pinoy_fed_ex" WHERE "time"='55:29:20';
## Task Generate a SQL query to answer the following question: `What year has the time of 55:29:20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "le_tour_de_pilipinas_padyak_pinoy_fed_ex" ( "year" real, "name" text, "date" text, "stages" text, "distance" text, "winner" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What year has the time of 55:29:20?`: ```sql
SELECT "score" FROM "doubles_finals_8" WHERE "partner"='lorenzo manta';
## Task Generate a SQL query to answer the following question: `What was the score when Mark parterned with lorenzo manta?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_finals_8" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score when Mark parterned with lorenzo manta?`: ```sql
SELECT "partner" FROM "doubles_finals_8" WHERE "surface"='carpet';
## Task Generate a SQL query to answer the following question: `Who was his partner when he played on carpet?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_finals_8" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was his partner when he played on carpet?`: ```sql
SELECT "date" FROM "doubles_finals_8" WHERE "partner"='peter nyborg';
## Task Generate a SQL query to answer the following question: `When did he play with peter nyborg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_finals_8" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `When did he play with peter nyborg?`: ```sql
SELECT "date" FROM "doubles_finals_8" WHERE "surface"='hard' AND "partner"='tom mercer';
## Task Generate a SQL query to answer the following question: `What day did he play on hard with tom mercer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_finals_8" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What day did he play on hard with tom mercer?`: ```sql
SELECT "record" FROM "schedule" WHERE "week"='2';
## Task Generate a SQL query to answer the following question: `What was the week 2's record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" text, "kickoff" text, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the week 2's record?`: ```sql
SELECT "record" FROM "schedule" WHERE "week"='12';
## Task Generate a SQL query to answer the following question: `What was week 12's record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" text, "kickoff" text, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was week 12's record?`: ```sql
SELECT "attendance" FROM "schedule" WHERE "record"='bye';
## Task Generate a SQL query to answer the following question: `What was the Bye week attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" text, "kickoff" text, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Bye week attendance?`: ```sql