output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "date" FROM "round_2" WHERE "home_team"='fitzroy';
## Task Generate a SQL query to answer the following question: `What date was the Home team fitzroy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_2" ( "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 date was the Home team fitzroy?`: ```sql
SELECT MAX("crowd") FROM "round_2" WHERE "away_team"='st kilda';
## Task Generate a SQL query to answer the following question: `What is the largest crowd when st kilda was the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_2" ( "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 largest crowd when st kilda was the away team?`: ```sql
SELECT "away_team_score" FROM "round_2" WHERE "away_team"='essendon';
## Task Generate a SQL query to answer the following question: `What was the score of essendon 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_2" ( "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 of essendon when they were the away team?`: ```sql
SELECT "home_team" FROM "round_2" WHERE "crowd">'13,000' AND "venue"='brunswick street oval';
## Task Generate a SQL query to answer the following question: `What is the home team when there were more than 13,000 in the crowd at brunswick street oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_2" ( "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 when there were more than 13,000 in the crowd at brunswick street oval?`: ```sql
SELECT "away_team" FROM "round_2" WHERE "home_team_score"='5.7 (37)';
## Task Generate a SQL query to answer the following question: `What away team played when the home team scoreed 5.7 (37)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_2" ( "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 away team played when the home team scoreed 5.7 (37)?`: ```sql
SELECT "home_team" FROM "round_2" WHERE "venue"='western oval';
## Task Generate a SQL query to answer the following question: `What home team played at the western oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_2" ( "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 played at the western oval?`: ```sql
SELECT "high_hill_zone" FROM "references" WHERE "mid_hill_zone"='slightly warm temperature';
## Task Generate a SQL query to answer the following question: `Which mid-hill zone has a slightly warm temperature?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "particulars_and_characteristics" text, "shivalik_zone" text, "mid_hill_zone" text, "high_hill_zone" text, "trance_n_himalaya_zone" text ); ### SQL Given the database schema, here is the SQL query that answers `Which mid-hill zone has a slightly warm temperature?`: ```sql
SELECT "result" FROM "schedule" WHERE "date"='december 3, 1995';
## Task Generate a SQL query to answer the following question: `Which one took place on December 3, 1995?` ### 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 `Which one took place on December 3, 1995?`: ```sql
SELECT "result" FROM "schedule" WHERE "opponent"='new orleans saints';
## Task Generate a SQL query to answer the following question: `Who was the opponent of the New Orleans Saints?` ### 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 `Who was the opponent of the New Orleans Saints?`: ```sql
SELECT "grid" FROM "superbike_race_1_classification" WHERE "laps"=23 AND "rider"='josh brookes';
## Task Generate a SQL query to answer the following question: `What grid has 23 laps done by Josh Brookes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What grid has 23 laps done by Josh Brookes?`: ```sql
SELECT "time" FROM "superbike_race_1_classification" WHERE "rider"='noriyuki haga';
## Task Generate a SQL query to answer the following question: `What is noriyuki haga's time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is noriyuki haga's time?`: ```sql
SELECT "laps" FROM "superbike_race_1_classification" WHERE "time"='+28.778';
## Task Generate a SQL query to answer the following question: `What laps have a Time of +28.778?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What laps have a Time of +28.778?`: ```sql
SELECT "venue" FROM "round_17" WHERE "away_team"='hawthorn';
## Task Generate a SQL query to answer the following question: `Where was the game held where 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 `Where was the game held where Hawthorn was the away team?`: ```sql
SELECT "date" FROM "round_17" WHERE "home_team"='richmond';
## Task Generate a SQL query to answer the following question: `What was the date of the game when Richmond was the home 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 the date of the game when Richmond was the home team?`: ```sql
SELECT "home_team" FROM "round_17" WHERE "venue"='kardinia park';
## Task Generate a SQL query to answer the following question: `Who was the home team at the game played at Kardinia Park?` ### 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 at the game played at Kardinia Park?`: ```sql
SELECT "away_team_score" FROM "round_10" WHERE "venue"='western oval';
## Task Generate a SQL query to answer the following question: `What is the away team score when the venue was Western 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 away team score when the venue was Western Oval?`: ```sql
SELECT "date" FROM "round_10" WHERE "away_team_score"='6.12 (48)';
## Task Generate a SQL query to answer the following question: `What is the date of the game with an away team score of 6.12 (48)?` ### 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 date of the game with an away team score of 6.12 (48)?`: ```sql
SELECT "away_team" FROM "round_10" WHERE "away_team_score"='8.17 (65)';
## Task Generate a SQL query to answer the following question: `What is the away team when the away team score is 8.17 (65)?` ### 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 away team when the away team score is 8.17 (65)?`: ```sql
SELECT "date" FROM "round_10" WHERE "venue"='mcg';
## Task Generate a SQL query to answer the following question: `What is the date of the game when the venue is MCG?` ### 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 date of the game when the venue is MCG?`: ```sql
SELECT "home_team_score" FROM "round_10" WHERE "away_team"='essendon';
## Task Generate a SQL query to answer the following question: `What is the home team score when the away team is Essendon?` ### 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 score when the away team is Essendon?`: ```sql
SELECT "away_team" FROM "round_10" WHERE "venue"='kardinia park';
## Task Generate a SQL query to answer the following question: `What is the name of the away team whose venue is Kardinia Park?` ### 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 name of the away team whose venue is Kardinia Park?`: ```sql
SELECT "result" FROM "schedule" WHERE "stadium"='bye week';
## Task Generate a SQL query to answer the following question: `What was the result when they were on a bye week?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "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 result when they were on a bye week?`: ```sql
SELECT "result" FROM "schedule" WHERE "attendance"='25,418';
## Task Generate a SQL query to answer the following question: `What was the result when the attendance was 25,418?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "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 result when the attendance was 25,418?`: ```sql
SELECT "latest_version" FROM "dos_shells" WHERE "release_date"='1987-12-09';
## Task Generate a SQL query to answer the following question: `Which of the Latest version was released on Release date 1987-12-09?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "dos_shells" ( "name" text, "release_date" text, "latest_version" text, "status_support" text, "source_model" text, "architecture" text, "target_market" text ); ### SQL Given the database schema, here is the SQL query that answers `Which of the Latest version was released on Release date 1987-12-09?`: ```sql
SELECT "source_model" FROM "dos_shells" WHERE "architecture"='16-bit*';
## Task Generate a SQL query to answer the following question: `Which Source model has a 16-bit* Architecture?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "dos_shells" ( "name" text, "release_date" text, "latest_version" text, "status_support" text, "source_model" text, "architecture" text, "target_market" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Source model has a 16-bit* Architecture?`: ```sql
SELECT "latest_version" FROM "dos_shells" WHERE "architecture"='16-bit' AND "release_date"='1985-11-20';
## Task Generate a SQL query to answer the following question: `Which of the Latest version had a 16-bit Architecture and was released on Release date 1985-11-20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "dos_shells" ( "name" text, "release_date" text, "latest_version" text, "status_support" text, "source_model" text, "architecture" text, "target_market" text ); ### SQL Given the database schema, here is the SQL query that answers `Which of the Latest version had a 16-bit Architecture and was released on Release date 1985-11-20?`: ```sql
SELECT "architecture" FROM "dos_shells" WHERE "release_date"='1988-05-27';
## Task Generate a SQL query to answer the following question: `Which Architecture was released on Release date 1988-05-27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "dos_shells" ( "name" text, "release_date" text, "latest_version" text, "status_support" text, "source_model" text, "architecture" text, "target_market" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Architecture was released on Release date 1988-05-27?`: ```sql
SELECT "source_model" FROM "dos_shells" WHERE "release_date"='1992-04-06';
## Task Generate a SQL query to answer the following question: `Which Source model has a Release date of 1992-04-06?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "dos_shells" ( "name" text, "release_date" text, "latest_version" text, "status_support" text, "source_model" text, "architecture" text, "target_market" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Source model has a Release date of 1992-04-06?`: ```sql
SELECT "away_team" FROM "round_18" WHERE "home_team"='collingwood';
## Task Generate a SQL query to answer the following question: `Who is the away side when collingwood is at home?` ### 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 `Who is the away side when collingwood is at home?`: ```sql
SELECT "home_team" FROM "round_18" WHERE "venue"='arden street oval';
## Task Generate a SQL query to answer the following question: `Who is the home team at 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 `Who is the home team at arden street oval?`: ```sql
SELECT "home_team" FROM "round_18" WHERE "home_team_score"='12.10 (82)';
## Task Generate a SQL query to answer the following question: `Who is the home team that scores 12.10 (82)?` ### 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 `Who is the home team that scores 12.10 (82)?`: ```sql
SELECT SUM("freq") FROM "am" WHERE "owner"='wpw' AND "day_power_w">250;
## Task Generate a SQL query to answer the following question: `What is the WPW freq with a day power of 250?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "am" ( "freq" real, "call" text, "city" text, "owner" text, "day_power_w" real, "night_power" real, "format" text, "stereo" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the WPW freq with a day power of 250?`: ```sql
SELECT COUNT("freq") FROM "am" WHERE "day_power_w"='5,000' AND "owner"='triad';
## Task Generate a SQL query to answer the following question: `What is the Triad frew with a day power of 5,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "am" ( "freq" real, "call" text, "city" text, "owner" text, "day_power_w" real, "night_power" real, "format" text, "stereo" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Triad frew with a day power of 5,000?`: ```sql
SELECT "stereo" FROM "am" WHERE "call"='wpeo';
## Task Generate a SQL query to answer the following question: `Is WPEO in stereo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "am" ( "freq" real, "call" text, "city" text, "owner" text, "day_power_w" real, "night_power" real, "format" text, "stereo" text ); ### SQL Given the database schema, here is the SQL query that answers `Is WPEO in stereo?`: ```sql
SELECT "time" FROM "final" WHERE "name"='park tae-hwan';
## Task Generate a SQL query to answer the following question: `What is Park Tae-Hwan's final time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final" ( "lane" real, "name" text, "nationality" text, "100m" real, "150m" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Park Tae-Hwan's final time?`: ```sql
SELECT MAX("crowd") FROM "round_2" WHERE "away_team"='carlton';
## Task Generate a SQL query to answer the following question: `What was the largest crowd for an away Carlton game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_2" ( "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 largest crowd for an away Carlton game?`: ```sql
SELECT "home_team" FROM "round_2" WHERE "venue"='corio oval';
## Task Generate a SQL query to answer the following question: `Who was the home team for the game played at Corio Oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_2" ( "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 for the game played at Corio Oval?`: ```sql
SELECT "home_team" FROM "round_2" WHERE "crowd">'12,000' AND "away_team_score"='16.8 (104)';
## Task Generate a SQL query to answer the following question: `Who was the home team for the game where the away team scored 16.8 (104) and the crowd was over 12,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_2" ( "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 for the game where the away team scored 16.8 (104) and the crowd was over 12,000?`: ```sql
SELECT AVG("crowd") FROM "round_2" WHERE "home_team_score"='12.17 (89)';
## Task Generate a SQL query to answer the following question: `What was the crowd size at the game where the home team scored 12.17 (89)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_2" ( "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 at the game where the home team scored 12.17 (89)?`: ```sql
SELECT SUM("price_in_euro") FROM "durations_and_prices" WHERE "price_per_within_day"='&0 8';
## Task Generate a SQL query to answer the following question: `What is the Euro for a ticket with a Price per "Within" Day of &0 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "durations_and_prices" ( "valid" text, "within" text, "price_in_euro" real, "price_per_valid_day" text, "price_per_within_day" text, "area" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Euro for a ticket with a Price per "Within" Day of &0 8?`: ```sql
SELECT MIN("price_in_euro") FROM "durations_and_prices" WHERE "price_per_valid_day"='& 34';
## Task Generate a SQL query to answer the following question: `What is the lowest Euro for a ticket with a price per valid day of & 34?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "durations_and_prices" ( "valid" text, "within" text, "price_in_euro" real, "price_per_valid_day" text, "price_per_within_day" text, "area" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Euro for a ticket with a price per valid day of & 34?`: ```sql
SELECT "college" FROM "2001_new_england_patriots_draft_selectio" WHERE "position"='safety';
## Task Generate a SQL query to answer the following question: `The safety position is represented in the draft by which colleges?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2001_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 `The safety position is represented in the draft by which colleges?`: ```sql
SELECT COUNT("round") FROM "2001_new_england_patriots_draft_selectio" WHERE "college"='georgia';
## Task Generate a SQL query to answer the following question: `In how many rounds of the draft was there a college from Georgia involved?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2001_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 `In how many rounds of the draft was there a college from Georgia involved?`: ```sql
SELECT "time_retired" FROM "race" WHERE "driver"='jan heylen (r)';
## Task Generate a SQL query to answer the following question: `What is the Time of Driver Jan Heylen (r)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Time of Driver Jan Heylen (r)?`: ```sql
SELECT "grid" FROM "race" WHERE "driver"='cristiano da matta';
## Task Generate a SQL query to answer the following question: `What Grid has Driver Cristiano da Matta?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What Grid has Driver Cristiano da Matta?`: ```sql
SELECT "driver" FROM "race" WHERE "laps"<84 AND "points">9 AND "team"='rocketsports racing';
## Task Generate a SQL query to answer the following question: `Which Driver has less than 84 laps, more than 9 points and is on Rocketsports Racing Team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Driver has less than 84 laps, more than 9 points and is on Rocketsports Racing Team?`: ```sql
SELECT "team" FROM "race" WHERE "laps"<73 AND "time_retired"='gearbox';
## Task Generate a SQL query to answer the following question: `Which team has less than 73 laps and a gearbox time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which team has less than 73 laps and a gearbox time?`: ```sql
SELECT MIN("extinct") FROM "locomotives" WHERE "nbr_class"=32;
## Task Generate a SQL query to answer the following question: `What is the car with the lowest extinct year that has a NBR class of 32?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "locomotives" ( "nbr_class" real, "type" text, "introduced" real, "driving_wheel" text, "total" real, "extinct" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the car with the lowest extinct year that has a NBR class of 32?`: ```sql
SELECT "home_team" FROM "round_9" WHERE "venue"='corio oval';
## Task Generate a SQL query to answer the following question: `What is the home team that played at Corio Oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "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 that played at Corio Oval?`: ```sql
SELECT "venue" FROM "round_9" WHERE "home_team_score"='12.15 (87)';
## Task Generate a SQL query to answer the following question: `At which venue did the home team score 12.15 (87)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "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 which venue did the home team score 12.15 (87)?`: ```sql
SELECT "venue" FROM "round_9" WHERE "away_team_score"='15.9 (99)';
## Task Generate a SQL query to answer the following question: `At which venue did the away team score 15.9 (99)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "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 which venue did the away team score 15.9 (99)?`: ```sql
SELECT "date" FROM "round_9" WHERE "home_team"='st kilda';
## Task Generate a SQL query to answer the following question: `On which date was St Kilda the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "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 which date was St Kilda the home team?`: ```sql
SELECT "at_austin" FROM "all_time_series_records_against_big_12_m" WHERE "texas_vs"='kansas state';
## Task Generate a SQL query to answer the following question: `What is the Austin record of Kansas State?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time_series_records_against_big_12_m" ( "texas_vs" text, "overall_record" text, "at_austin" text, "at_opponent_s_venue" text, "at_neutral_site" text, "last_5_meetings" text, "last_10_meetings" text, "current_streak" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Austin record of Kansas State?`: ```sql
SELECT "last_5_meetings" FROM "all_time_series_records_against_big_12_m" WHERE "current_streak"='l 1';
## Task Generate a SQL query to answer the following question: `What was the result of the last 5 meetings for a team with an L 1 streak?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time_series_records_against_big_12_m" ( "texas_vs" text, "overall_record" text, "at_austin" text, "at_opponent_s_venue" text, "at_neutral_site" text, "last_5_meetings" text, "last_10_meetings" text, "current_streak" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result of the last 5 meetings for a team with an L 1 streak?`: ```sql
SELECT "partner" FROM "doubles_titles_8" WHERE "date">1971 AND "outcome"='runner-up' AND "score_in_the_final"='3–6, 3–6';
## Task Generate a SQL query to answer the following question: `Who is the partner on a date later than 1971 who is the runner-up with a score of 3–6, 3–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_titles_8" ( "outcome" text, "date" real, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the partner on a date later than 1971 who is the runner-up with a score of 3–6, 3–6?`: ```sql
SELECT MIN("year") FROM "notes" WHERE "country"='canada' AND "position"='center' AND "player"='mario lemieux';
## Task Generate a SQL query to answer the following question: `What is the first year that Mario Lemieux from Canada won playing center?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notes" ( "year" real, "player" text, "country" text, "team" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the first year that Mario Lemieux from Canada won playing center?`: ```sql
SELECT "country" FROM "notes" WHERE "player"='mario lemieux' AND "year"=1994;
## Task Generate a SQL query to answer the following question: `What country did mario lemieux play for in 1994?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notes" ( "year" real, "player" text, "country" text, "team" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `What country did mario lemieux play for in 1994?`: ```sql
SELECT "player" FROM "notes" WHERE "position"='center' AND "year"=2010;
## Task Generate a SQL query to answer the following question: `What player played center in 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notes" ( "year" real, "player" text, "country" text, "team" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `What player played center in 2010?`: ```sql
SELECT "drop" FROM "most_points_in_a_match" WHERE "date"='10/02/2007';
## Task Generate a SQL query to answer the following question: `What is the drop number on 10/02/2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_points_in_a_match" ( "player" text, "tries" text, "conv" text, "pens" text, "drop" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the drop number on 10/02/2007?`: ```sql
SELECT "drop" FROM "most_points_in_a_match" WHERE "date"='08/06/2011';
## Task Generate a SQL query to answer the following question: `What is the drop number on 08/06/2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_points_in_a_match" ( "player" text, "tries" text, "conv" text, "pens" text, "drop" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the drop number on 08/06/2011?`: ```sql
SELECT "drop" FROM "most_points_in_a_match" WHERE "pens"='0' AND "player"='fangatapu apikotoa';
## Task Generate a SQL query to answer the following question: `How many drops occurred with 0 pens and Fangatapu Apikotoa playing?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_points_in_a_match" ( "player" text, "tries" text, "conv" text, "pens" text, "drop" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many drops occurred with 0 pens and Fangatapu Apikotoa playing?`: ```sql
SELECT "player" FROM "most_points_in_a_match" WHERE "venue"='esher';
## Task Generate a SQL query to answer the following question: `Who is the player associated with the Esher venue?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_points_in_a_match" ( "player" text, "tries" text, "conv" text, "pens" text, "drop" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the player associated with the Esher venue?`: ```sql
SELECT "conv" FROM "most_points_in_a_match" WHERE "drop"='0' AND "date"='02/07/2011';
## Task Generate a SQL query to answer the following question: `What is the conversion number with 0 drops on 02/07/2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_points_in_a_match" ( "player" text, "tries" text, "conv" text, "pens" text, "drop" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the conversion number with 0 drops on 02/07/2011?`: ```sql
SELECT "venue" FROM "most_points_in_a_match" WHERE "pens"='0' AND "tries"='1';
## Task Generate a SQL query to answer the following question: `In which venue did 0 pens and 1 try occur?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_points_in_a_match" ( "player" text, "tries" text, "conv" text, "pens" text, "drop" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `In which venue did 0 pens and 1 try occur?`: ```sql
SELECT "result" FROM "exhibition_schedule" WHERE "opponent"='st. louis cardinals';
## Task Generate a SQL query to answer the following question: `What was the score of the game against the St. Louis Cardinals?` ### 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 the score of the game against the St. Louis Cardinals?`: ```sql
SELECT "model" FROM "comparison_table_of_hp_laser_jet_4000_mo" WHERE "cpu_speed"='133mhz';
## Task Generate a SQL query to answer the following question: `Which model has a CPU speed of 133mhz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_table_of_hp_laser_jet_4000_mo" ( "model" real, "introduction" text, "discontinued" text, "cpu_speed" text, "print_speed_ppm" text, "standard_memory" text, "maximum_memory" text ); ### SQL Given the database schema, here is the SQL query that answers `Which model has a CPU speed of 133mhz?`: ```sql
SELECT MAX("model") FROM "comparison_table_of_hp_laser_jet_4000_mo" WHERE "maximum_memory"='512 mb';
## Task Generate a SQL query to answer the following question: `Which model has a maximum memory of 512 mb?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_table_of_hp_laser_jet_4000_mo" ( "model" real, "introduction" text, "discontinued" text, "cpu_speed" text, "print_speed_ppm" text, "standard_memory" text, "maximum_memory" text ); ### SQL Given the database schema, here is the SQL query that answers `Which model has a maximum memory of 512 mb?`: ```sql
SELECT "maximum_memory" FROM "comparison_table_of_hp_laser_jet_4000_mo" WHERE "standard_memory"='16 mb';
## Task Generate a SQL query to answer the following question: `What is the maximum memory of the model that has a standard memory of 16 mb?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_table_of_hp_laser_jet_4000_mo" ( "model" real, "introduction" text, "discontinued" text, "cpu_speed" text, "print_speed_ppm" text, "standard_memory" text, "maximum_memory" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum memory of the model that has a standard memory of 16 mb?`: ```sql
SELECT MAX("crowd") FROM "round_1" WHERE "away_team"='melbourne';
## Task Generate a SQL query to answer the following question: `What is the largest crowd for a Melbourne 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 is the largest crowd for a Melbourne away team?`: ```sql
SELECT "home_team_score" FROM "round_9" WHERE "home_team"='essendon';
## Task Generate a SQL query to answer the following question: `What is the home team score when the home team is Essendon?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "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 score when the home team is Essendon?`: ```sql
SELECT "home_team" FROM "round_9" WHERE "home_team_score"='12.17 (89)';
## Task Generate a SQL query to answer the following question: `What is the home team when the home team score is 12.17 (89)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "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 when the home team score is 12.17 (89)?`: ```sql
SELECT "away_team" FROM "round_9" WHERE "away_team_score"='10.10 (70)';
## Task Generate a SQL query to answer the following question: `What is the away team when the away team score is 10.10 (70)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "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 away team when the away team score is 10.10 (70)?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "date"='december 20, 1998';
## Task Generate a SQL query to answer the following question: `Which opponent was playing on December 20, 1998?` ### 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, "tv_time" text ); ### SQL Given the database schema, here is the SQL query that answers `Which opponent was playing on December 20, 1998?`: ```sql
SELECT "home_team" FROM "round_15" WHERE "home_team_score"='13.11 (89)';
## Task Generate a SQL query to answer the following question: `Who was the home team that had a score of 13.11 (89)?` ### 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 home team that had a score of 13.11 (89)?`: ```sql
SELECT "date" FROM "round_15" WHERE "venue"='princes park';
## Task Generate a SQL query to answer the following question: `When was the game that was held at the Princes Park?` ### 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 `When was the game that was held at the Princes Park?`: ```sql
SELECT MIN("crowd") FROM "round_15" WHERE "home_team"='footscray';
## Task Generate a SQL query to answer the following question: `What was the smallest crowd size at a home game for Footscray?` ### 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 the smallest crowd size at a home game for Footscray?`: ```sql
SELECT "date" FROM "round_15" WHERE "home_team_score"='18.14 (122)';
## Task Generate a SQL query to answer the following question: `When was the game where the home team scored 18.14 (122)?` ### 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 `When was the game where the home team scored 18.14 (122)?`: ```sql
SELECT "home_team_score" FROM "round_15" WHERE "home_team"='melbourne';
## Task Generate a SQL query to answer the following question: `What was Melbourne's score as 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 Melbourne's score as the home team?`: ```sql
SELECT "away_team_score" FROM "round_15" WHERE "crowd">'31,481' AND "venue"='arden street oval';
## Task Generate a SQL query to answer the following question: `What was the away team's score when the crowd at Arden Street Oval was larger than 31,481?` ### 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 the away team's score when the crowd at Arden Street Oval was larger than 31,481?`: ```sql
SELECT "away_team" FROM "round_15" WHERE "home_team"='fitzroy';
## Task Generate a SQL query to answer the following question: `What was the away team that played Fitzroy?` ### 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 the away team that played Fitzroy?`: ```sql
SELECT SUM("crowd") FROM "round_15" WHERE "venue"='western oval';
## Task Generate a SQL query to answer the following question: `What was the sum of the crowds at Western Oval?` ### 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 the sum of the crowds at Western Oval?`: ```sql
SELECT COUNT("crowd") FROM "round_15" WHERE "away_team_score"='17.13 (115)';
## Task Generate a SQL query to answer the following question: `What was the total crowd size when the away team scored 17.13 (115)?` ### 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 the total crowd size when the away team scored 17.13 (115)?`: ```sql
SELECT "venue" FROM "round_15" WHERE "home_team_score"='18.17 (125)';
## Task Generate a SQL query to answer the following question: `Where did the home team score 18.17 (125)?` ### 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 did the home team score 18.17 (125)?`: ```sql
SELECT "country" FROM "winners" WHERE "year"=1907;
## Task Generate a SQL query to answer the following question: `What country had a winner in 1907?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "rider" text, "country" text, "distance" text, "pacing" text, "velodrome" text ); ### SQL Given the database schema, here is the SQL query that answers `What country had a winner in 1907?`: ```sql
SELECT "velodrome" FROM "winners" WHERE "year"<1950 AND "country"='france' AND "pacing"='tandem paced' AND "distance"='951.750 km';
## Task Generate a SQL query to answer the following question: `What velodrome took place earlier than 1950 with a winner from France in tandem paced over a distance of 951.750 km?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "rider" text, "country" text, "distance" text, "pacing" text, "velodrome" text ); ### SQL Given the database schema, here is the SQL query that answers `What velodrome took place earlier than 1950 with a winner from France in tandem paced over a distance of 951.750 km?`: ```sql
SELECT "game_site" FROM "schedule" WHERE "kickoff"='12:00 p.m.' AND "record"='8-5';
## Task Generate a SQL query to answer the following question: `Where was the game played when they kickoff was 12:00 p.m., and a Record of 8-5?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `Where was the game played when they kickoff was 12:00 p.m., and a Record of 8-5?`: ```sql
SELECT "date" FROM "schedule" WHERE "game_site"='bye';
## Task Generate a SQL query to answer the following question: `What date has a Game site of 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 ); ### SQL Given the database schema, here is the SQL query that answers `What date has a Game site of bye?`: ```sql
SELECT "record" FROM "schedule" WHERE "kickoff"='kickoff';
## Task Generate a SQL query to answer the following question: `What is the record which shows Kickoff as kickoff?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `What is the record which shows Kickoff as kickoff?`: ```sql
SELECT "record" FROM "schedule" WHERE "game_site"='raymond james stadium';
## Task Generate a SQL query to answer the following question: `What is the record when the game was played at raymond james stadium?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `What is the record when the game was played at raymond james stadium?`: ```sql
SELECT "kickoff" FROM "schedule" WHERE "date"='october 22, 2000';
## Task Generate a SQL query to answer the following question: `What is the kickoff for the game on october 22, 2000?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `What is the kickoff for the game on october 22, 2000?`: ```sql
SELECT "network" FROM "united_states" WHERE "service"='dish' AND "language"='hindi' AND "origin_of_programming"='india' AND "genre"='general';
## Task Generate a SQL query to answer the following question: `Which Hindi network is based in India and uses dish service and shows general programming?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states" ( "network" text, "origin_of_programming" text, "language" text, "genre" text, "service" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Hindi network is based in India and uses dish service and shows general programming?`: ```sql
SELECT "language" FROM "united_states" WHERE "service"='optimum tv' AND "origin_of_programming"='united states' AND "genre"='cricket';
## Task Generate a SQL query to answer the following question: `Which language is used by the optimum TV service that shows cricket and is based in the United States?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states" ( "network" text, "origin_of_programming" text, "language" text, "genre" text, "service" text ); ### SQL Given the database schema, here is the SQL query that answers `Which language is used by the optimum TV service that shows cricket and is based in the United States?`: ```sql
SELECT "origin_of_programming" FROM "united_states" WHERE "service"='dish' AND "language"='malayalam' AND "genre"='general' AND "network"='asianet plus';
## Task Generate a SQL query to answer the following question: `What is the origin of the Malayalam Dish Service that shows general programming on the Asianet Plus network?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states" ( "network" text, "origin_of_programming" text, "language" text, "genre" text, "service" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the origin of the Malayalam Dish Service that shows general programming on the Asianet Plus network?`: ```sql
SELECT AVG("grid") FROM "race" WHERE "constructor"='ferrari' AND "time_retired"='1:32:35.101';
## Task Generate a SQL query to answer the following question: `What is the average grid number with a ferrari and a time or retired time of 1:32:35.101?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" 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 with a ferrari and a time or retired time of 1:32:35.101?`: ```sql
SELECT "week" FROM "regular_season_schedule" WHERE "date"='november 24, 1957';
## Task Generate a SQL query to answer the following question: `What week of the season was November 24, 1957?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What week of the season was November 24, 1957?`: ```sql
SELECT "score" FROM "regular_season_schedule" WHERE "opponent"='san diego chargers';
## Task Generate a SQL query to answer the following question: `What was the score of the game against the San Diego Chargers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season_schedule" ( "date" text, "opponent" text, "score" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the game against the San Diego Chargers?`: ```sql
SELECT SUM("week") FROM "schedule" WHERE "attendance">'58,675' AND "date"='october 22, 1995';
## Task Generate a SQL query to answer the following question: `What is the week more than 58,675 attended on october 22, 1995?` ### 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" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the week more than 58,675 attended on october 22, 1995?`: ```sql
SELECT MAX("week") FROM "schedule" WHERE "date"='november 5, 1995';
## Task Generate a SQL query to answer the following question: `What is the latest week with the date of november 5, 1995?` ### 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" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the latest week with the date of november 5, 1995?`: ```sql
SELECT COUNT("week") FROM "schedule" WHERE "attendance"<'74,171' AND "result"='w 26–10';
## Task Generate a SQL query to answer the following question: `How many weeks was the attendance less than 74,171 and the result was w 26–10?` ### 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" real ); ### SQL Given the database schema, here is the SQL query that answers `How many weeks was the attendance less than 74,171 and the result was w 26–10?`: ```sql
SELECT "outcome" FROM "doubles_finals" WHERE "tournament"='buenos aires';
## Task Generate a SQL query to answer the following question: `What was the outcome of the Tournament in Buenos Aires?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_finals" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the outcome of the Tournament in Buenos Aires?`: ```sql