output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "fat32" FROM "windows_nt" WHERE "hpfs"='no' AND "re_fs"='no' AND "ntfs"='yes v3.0';
## Task Generate a SQL query to answer the following question: `Which FAT32 has a no for HPFS, a no for ReFS, and a yes v3.0 fir NTFS?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "windows_nt" ( "fat16" text, "fat32" text, "hpfs" text, "iso_9660" text, "ntfs" text, "re_fs" text ); ### SQL Given the database schema, here is the SQL query that answers `Which FAT32 has a no for HPFS, a no for ReFS, and a yes v3.0 fir NTFS?`: ```sql
SELECT "re_fs" FROM "windows_nt" WHERE "ntfs"='yes v3.0';
## Task Generate a SQL query to answer the following question: `Which ReFS has yes v3.0 for NTFS?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "windows_nt" ( "fat16" text, "fat32" text, "hpfs" text, "iso_9660" text, "ntfs" text, "re_fs" text ); ### SQL Given the database schema, here is the SQL query that answers `Which ReFS has yes v3.0 for NTFS?`: ```sql
SELECT "ntfs" FROM "windows_nt" WHERE "re_fs"='no' AND "hpfs"='yes';
## Task Generate a SQL query to answer the following question: `Which NTFS has a no for ReFS and a yes for HPFS?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "windows_nt" ( "fat16" text, "fat32" text, "hpfs" text, "iso_9660" text, "ntfs" text, "re_fs" text ); ### SQL Given the database schema, here is the SQL query that answers `Which NTFS has a no for ReFS and a yes for HPFS?`: ```sql
SELECT "position" FROM "g" WHERE "from"='1955';
## Task Generate a SQL query to answer the following question: `What player position was drafted in 1955?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "g" ( "player" text, "nationality" text, "position" text, "from" text, "school_country" text ); ### SQL Given the database schema, here is the SQL query that answers `What player position was drafted in 1955?`: ```sql
SELECT "school_country" FROM "g" WHERE "from"='1950';
## Task Generate a SQL query to answer the following question: `From what school was a player drafted in 1950?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "g" ( "player" text, "nationality" text, "position" text, "from" text, "school_country" text ); ### SQL Given the database schema, here is the SQL query that answers `From what school was a player drafted in 1950?`: ```sql
SELECT "home_team" FROM "round_7" WHERE "home_team_score"='11.9 (75)';
## Task Generate a SQL query to answer the following question: `What home team has a score of 11.9 (75)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_7" ( "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 has a score of 11.9 (75)?`: ```sql
SELECT "home_team" FROM "round_7" WHERE "venue"='glenferrie oval';
## Task Generate a SQL query to answer the following question: `What home team plays at glenferrie oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_7" ( "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 glenferrie oval?`: ```sql
SELECT "away_team_score" FROM "round_7" WHERE "venue"='lake oval';
## Task Generate a SQL query to answer the following question: `What is the away side that playes at lake oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_7" ( "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 side that playes at lake oval?`: ```sql
SELECT "date" FROM "round_7" WHERE "away_team_score"='7.8 (50)';
## Task Generate a SQL query to answer the following question: `What day does the away team score 7.8 (50)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_7" ( "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 day does the away team score 7.8 (50)?`: ```sql
SELECT "away_team_score" FROM "round_7" WHERE "home_team"='carlton';
## Task Generate a SQL query to answer the following question: `What is the away side when carlton is the home side?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_7" ( "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 side when carlton is the home side?`: ```sql
SELECT "away_team_score" FROM "round_12" WHERE "venue"='western oval';
## Task Generate a SQL query to answer the following question: `Who is the away team at western oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "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 at western oval?`: ```sql
SELECT "venue" FROM "round_12" WHERE "home_team_score"='10.17 (77)';
## Task Generate a SQL query to answer the following question: `What venue featured the home side scoring 10.17 (77)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "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 scoring 10.17 (77)?`: ```sql
SELECT "icelandic_title" FROM "the_legend_of_the_ice_people" WHERE "norwegian_title"='galgeblomsten';
## Task Generate a SQL query to answer the following question: `What is the Icelandic title for the Norweigan titled galgeblomsten?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_legend_of_the_ice_people" ( "swedish_title" text, "norwegian_title" text, "icelandic_title" text, "translated_title" text, "polish_title" text, "hungarian_title" text, "published" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Icelandic title for the Norweigan titled galgeblomsten?`: ```sql
SELECT "date" FROM "round_1" WHERE "venue"='lake oval';
## Task Generate a SQL query to answer the following question: `When is the event at lake 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 `When is the event at lake oval?`: ```sql
SELECT "away_team_score" FROM "round_1" WHERE "venue"='western oval';
## Task Generate a SQL query to answer the following question: `What is 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 is the away team's score at western oval?`: ```sql
SELECT "home_team_score" FROM "round_1" WHERE "venue"='lake oval';
## Task Generate a SQL query to answer the following question: `What's the home team's score at lake 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's the home team's score at lake oval?`: ```sql
SELECT "date" FROM "round_9" WHERE "venue"='mcg';
## Task Generate a SQL query to answer the following question: `What date did VFL play MCG?` ### 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 date did VFL play MCG?`: ```sql
SELECT COUNT("crowd") FROM "round_4" WHERE "away_team"='st kilda';
## Task Generate a SQL query to answer the following question: `How many times is st kilda 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 `How many times is st kilda the away team?`: ```sql
SELECT MAX("crowd") FROM "round_4" WHERE "home_team_score"='14.12 (96)';
## Task Generate a SQL query to answer the following question: `What is the largest crowd when the home team scores 14.12 (96)?` ### 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 largest crowd when the home team scores 14.12 (96)?`: ```sql
SELECT "away_team_score" FROM "round_11" WHERE "crowd">'20,915';
## Task Generate a SQL query to answer the following question: `When the crowd was larger than 20,915 what did the Away team score?` ### 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 `When the crowd was larger than 20,915 what did the Away team score?`: ```sql
SELECT "away_team_score" FROM "round_11" WHERE "venue"='victoria park';
## Task Generate a SQL query to answer the following question: `What did the Away team score in their game at Victoria Park?` ### 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 did the Away team score in their game at Victoria Park?`: ```sql
SELECT "away_team_score" FROM "round_11" WHERE "crowd">'15,322' AND "away_team"='richmond';
## Task Generate a SQL query to answer the following question: `When the crowd was over 15,322 in Richmond what did the Away team score?` ### 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 `When the crowd was over 15,322 in Richmond what did the Away team score?`: ```sql
SELECT "home_team_score" FROM "round_11" WHERE "venue"='mcg';
## Task Generate a SQL query to answer the following question: `What did the Home team score when they were in MCG?` ### 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 did the Home team score when they were in MCG?`: ```sql
SELECT "attendance" FROM "schedule" WHERE "game_site"='foxboro stadium';
## Task Generate a SQL query to answer the following question: `What was the attendance for each game held at Foxboro Stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance for each game held at Foxboro Stadium?`: ```sql
SELECT "date" FROM "schedule" WHERE "opponent"='indianapolis colts';
## Task Generate a SQL query to answer the following question: `When was the game against the Indianapolis Colts?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the game against the Indianapolis Colts?`: ```sql
SELECT COUNT("week") FROM "schedule" WHERE "opponent"='pittsburgh steelers';
## Task Generate a SQL query to answer the following question: `How many weeks total did the New York Jets face the Pittsburgh Steelers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `How many weeks total did the New York Jets face the Pittsburgh Steelers?`: ```sql
SELECT SUM("week") FROM "schedule" WHERE "game_site"='the meadowlands' AND "attendance"='78,161';
## Task Generate a SQL query to answer the following question: `What week did the Jets play in the meadowlands with and attendance of 78,161?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What week did the Jets play in the meadowlands with and attendance of 78,161?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "game_site"='the meadowlands' AND "week"=14;
## Task Generate a SQL query to answer the following question: `Who did the Jets play in the Meadowlands on week 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who did the Jets play in the Meadowlands on week 14?`: ```sql
SELECT "attendance" FROM "schedule" WHERE "week"=17;
## Task Generate a SQL query to answer the following question: `What was the Jets week 17 attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Jets week 17 attendance?`: ```sql
SELECT "opening_date" FROM "current_casinos" WHERE "hotel_rooms"=727;
## Task Generate a SQL query to answer the following question: `When did the hotel with 727 rooms open?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_casinos" ( "casino" text, "opening_date" text, "theme" text, "hotel_rooms" real, "section_of_atlantic_city" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the hotel with 727 rooms open?`: ```sql
SELECT "school_club_team" FROM "nfl_draft" WHERE "round">4 AND "position"='wide receiver';
## Task Generate a SQL query to answer the following question: `Which school(s) had a wide receiver drafted in round 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "overall" real, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which school(s) had a wide receiver drafted in round 4?`: ```sql
SELECT "school_country" FROM "l" WHERE "from"=1987;
## Task Generate a SQL query to answer the following question: `Which of the above are from 1987?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "l" ( "player" text, "nationality" text, "position" text, "from" real, "school_country" text ); ### SQL Given the database schema, here is the SQL query that answers `Which of the above are from 1987?`: ```sql
SELECT "position" FROM "l" WHERE "from"=1987;
## Task Generate a SQL query to answer the following question: `What position is the player from 1987?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "l" ( "player" text, "nationality" text, "position" text, "from" real, "school_country" text ); ### SQL Given the database schema, here is the SQL query that answers `What position is the player from 1987?`: ```sql
SELECT "position" FROM "l" WHERE "from"=1959;
## Task Generate a SQL query to answer the following question: `What position is the player from 1959?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "l" ( "player" text, "nationality" text, "position" text, "from" real, "school_country" text ); ### SQL Given the database schema, here is the SQL query that answers `What position is the player from 1959?`: ```sql
SELECT "opponent" FROM "regular_season" WHERE "week"<6 AND "game_site"='cleveland municipal stadium';
## Task Generate a SQL query to answer the following question: `Who was the opponent before week 6 at cleveland municipal stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent before week 6 at cleveland municipal stadium?`: ```sql
SELECT "date" FROM "round_18" WHERE "away_team"='richmond';
## Task Generate a SQL query to answer the following question: `What date was Richmond the away team?` ### 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 date was Richmond the away team?`: ```sql
SELECT "county" FROM "historical_population" WHERE "pct_2040">1.8 AND "pct_2000"<4.1 AND "pct_1960"<3.2 AND "rank"='13';
## Task Generate a SQL query to answer the following question: `Which county has a % (2040) larger than 1.8, a % (2000) smaller than 4.1, a % (1960) smaller than 3.2, and is ranked 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "historical_population" ( "rank" text, "county" text, "pct_1960" real, "pct_2000" real, "pct_2040" real ); ### SQL Given the database schema, here is the SQL query that answers `Which county has a % (2040) larger than 1.8, a % (2000) smaller than 4.1, a % (1960) smaller than 3.2, and is ranked 13?`: ```sql
SELECT SUM("pct_1960") FROM "historical_population" WHERE "pct_2040"<100 AND "pct_2000"<4.7 AND "county"='troms';
## Task Generate a SQL query to answer the following question: `What is the % (1960) of Troms, which has a % (2040) smaller than 100 and a % (2000) smaller than 4.7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "historical_population" ( "rank" text, "county" text, "pct_1960" real, "pct_2000" real, "pct_2040" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the % (1960) of Troms, which has a % (2040) smaller than 100 and a % (2000) smaller than 4.7?`: ```sql
SELECT COUNT("pct_1960") FROM "historical_population" WHERE "pct_2040"=3.4;
## Task Generate a SQL query to answer the following question: `What is the % (1960) of the county with a % (2040) of 3.4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "historical_population" ( "rank" text, "county" text, "pct_1960" real, "pct_2000" real, "pct_2040" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the % (1960) of the county with a % (2040) of 3.4?`: ```sql
SELECT "record_company" FROM "complete_ballet" WHERE "conductor"='robert craft';
## Task Generate a SQL query to answer the following question: `What record company has robert craft conducting?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_ballet" ( "orchestra" text, "conductor" text, "record_company" text, "year_of_recording" real, "format" text ); ### SQL Given the database schema, here is the SQL query that answers `What record company has robert craft conducting?`: ```sql
SELECT "conductor" FROM "complete_ballet" WHERE "orchestra"='chicago symphony orchestra';
## Task Generate a SQL query to answer the following question: `Who is the conductor when the chicago symphony orchestra is featured?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_ballet" ( "orchestra" text, "conductor" text, "record_company" text, "year_of_recording" real, "format" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the conductor when the chicago symphony orchestra is featured?`: ```sql
SELECT MAX("attendance") FROM "schedule" WHERE "date"='november 11, 1979' AND "week">11;
## Task Generate a SQL query to answer the following question: `How many people attended the Cleveland Browns game on November 11, 1979?` ### 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 people attended the Cleveland Browns game on November 11, 1979?`: ```sql
SELECT COUNT("week") FROM "schedule" WHERE "date"='september 2, 1979';
## Task Generate a SQL query to answer the following question: `The game on September 2, 1979 was during which week of the season?` ### 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 `The game on September 2, 1979 was during which week of the season?`: ```sql
SELECT "home_team_score" FROM "round_14" WHERE "away_team"='richmond';
## Task Generate a SQL query to answer the following question: `What was the home team's score at the game where Richmond was the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_14" ( "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 at the game where Richmond was the away team?`: ```sql
SELECT "crowd" FROM "round_14" WHERE "away_team"='essendon';
## Task Generate a SQL query to answer the following question: `What was the size of the crowd 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_14" ( "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 size of the crowd when Essendon was the away team?`: ```sql
SELECT "whenbuilt" FROM "british_railways_batch" WHERE "builder"='brighton' AND "withdrawn"='september 1964' AND "name"='blandford forum';
## Task Generate a SQL query to answer the following question: `What is the whenbuilt of the Brighton built Blandford Forum with a withdrawn of september 1964?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "british_railways_batch" ( "br_no" real, "name" text, "builder" text, "whenbuilt" text, "withdrawn" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the whenbuilt of the Brighton built Blandford Forum with a withdrawn of september 1964?`: ```sql
SELECT AVG("crowd") FROM "round_13" WHERE "away_team_score"='8.11 (59)';
## Task Generate a SQL query to answer the following question: `What is the crowd with an Away team score of 8.11 (59)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_13" ( "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 with an Away team score of 8.11 (59)?`: ```sql
SELECT "away_team" FROM "round_13" WHERE "away_team_score"='8.11 (59)';
## Task Generate a SQL query to answer the following question: `What team has Away team score of 8.11 (59)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_13" ( "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 team has Away team score of 8.11 (59)?`: ```sql
SELECT "away_team_score" FROM "round_16" WHERE "home_team_score"='15.8 (98)';
## Task Generate a SQL query to answer the following question: `What was the away team score when the team team score was 15.8 (98)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_16" ( "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 score when the team team score was 15.8 (98)?`: ```sql
SELECT "crowd" FROM "round_16" WHERE "home_team"='north melbourne';
## Task Generate a SQL query to answer the following question: `What was the listed attendance when north melbourne was the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_16" ( "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 listed attendance when north melbourne was the home team?`: ```sql
SELECT "date" FROM "round_16" WHERE "home_team"='geelong';
## Task Generate a SQL query to answer the following question: `What day was geelong the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_16" ( "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 day was geelong the home team?`: ```sql
SELECT "home_team" FROM "round_12" WHERE "crowd">'30,080';
## Task Generate a SQL query to answer the following question: `Who played as the home team when the attendance was more than 30,080?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "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 as the home team when the attendance was more than 30,080?`: ```sql
SELECT MAX("crowd") FROM "round_12" WHERE "venue"='junction oval';
## Task Generate a SQL query to answer the following question: `What was the highest attendance at Junction Oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "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 highest attendance at Junction Oval?`: ```sql
SELECT "away_team_score" FROM "round_12" WHERE "home_team"='hawthorn';
## Task Generate a SQL query to answer the following question: `What was the away teams score when Hawthorn played as the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "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 teams score when Hawthorn played as the home team?`: ```sql
SELECT "num_of_bids" FROM "record_by_conference" WHERE "conference"='atlantic 10';
## Task Generate a SQL query to answer the following question: `How many bids does Atlantic 10 have?` ### 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 does Atlantic 10 have?`: ```sql
SELECT "away_team_score" FROM "round_11" WHERE "home_team"='north melbourne';
## Task Generate a SQL query to answer the following question: `What was the away team's score in the game against North Melbourne?` ### 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 away team's score in the game against North Melbourne?`: ```sql
SELECT MIN("crowd") FROM "round_11" WHERE "away_team_score"='11.17 (83)';
## Task Generate a SQL query to answer the following question: `What was the lowest crowd size when the away team scored 11.17 (83)?` ### 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 lowest crowd size when the away team scored 11.17 (83)?`: ```sql
SELECT AVG("crowd") FROM "round_11" WHERE "away_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `What was the average crowd size when the away team was South Melbourne?` ### 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 average crowd size when the away team was South Melbourne?`: ```sql
SELECT "venue" FROM "round_11" WHERE "crowd">'11,000' AND "away_team_score"='11.10 (76)';
## Task Generate a SQL query to answer the following question: `At what venue did a crowd larger than 11,000 see the away team score 11.10 (76)?` ### 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 a crowd larger than 11,000 see the away team score 11.10 (76)?`: ```sql
SELECT "venue" FROM "round_11" WHERE "away_team"='fitzroy';
## Task Generate a SQL query to answer the following question: `At what venue was the away team Fitzroy?` ### 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 was the away team Fitzroy?`: ```sql
SELECT "year" FROM "tour_of_luzon" WHERE "distance"='1,870.23 km';
## Task Generate a SQL query to answer the following question: `In what year saw a total distance of 1,870.23 km?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tour_of_luzon" ( "year" text, "date" text, "stages" text, "distance" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `In what year saw a total distance of 1,870.23 km?`: ```sql
SELECT "winner" FROM "tour_of_luzon" WHERE "year"='1965';
## Task Generate a SQL query to answer the following question: `Who won in 1965?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tour_of_luzon" ( "year" text, "date" text, "stages" text, "distance" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won in 1965?`: ```sql
SELECT "stages" FROM "tour_of_luzon" WHERE "distance"='1,648 km';
## Task Generate a SQL query to answer the following question: `What stage was 1,648 km achieved?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tour_of_luzon" ( "year" text, "date" text, "stages" text, "distance" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `What stage was 1,648 km achieved?`: ```sql
SELECT "year" FROM "tour_of_luzon" WHERE "stages"='8';
## Task Generate a SQL query to answer the following question: `What year was stage 8 reached?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tour_of_luzon" ( "year" text, "date" text, "stages" text, "distance" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was stage 8 reached?`: ```sql
SELECT MIN("bronze") FROM "medal_table" WHERE "rank">13;
## Task Generate a SQL query to answer the following question: `What is the lowest number of bronze medals for teams ranked below 13?` ### 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 number of bronze medals for teams ranked below 13?`: ```sql
SELECT COUNT("gold") FROM "medal_table" WHERE "bronze"=3 AND "rank">7 AND "total"<5;
## Task Generate a SQL query to answer the following question: `How many golds for teams ranking below 7 with 3 bronze and less than 5 total 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 `How many golds for teams ranking below 7 with 3 bronze and less than 5 total medals?`: ```sql
SELECT MIN("highest_score") FROM "highest_and_lowest_scoring_performances" WHERE "worst_dancer_s"='master p' AND "best_dancer_s"='drew lachey' AND "lowest_score"<8;
## Task Generate a SQL query to answer the following question: `What is the lowest score in the Highest score column when Master P was the Worst dancer(s), Drew Lachey was the Best dancer(s), and the Lowest score was under 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer_s" text, "highest_score" real, "worst_dancer_s" text, "lowest_score" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest score in the Highest score column when Master P was the Worst dancer(s), Drew Lachey was the Best dancer(s), and the Lowest score was under 8?`: ```sql
SELECT "worst_dancer_s" FROM "highest_and_lowest_scoring_performances" WHERE "lowest_score"=14;
## Task Generate a SQL query to answer the following question: `Which of the Worst dancer(s) has the Lowest score of 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer_s" text, "highest_score" real, "worst_dancer_s" text, "lowest_score" real ); ### SQL Given the database schema, here is the SQL query that answers `Which of the Worst dancer(s) has the Lowest score of 14?`: ```sql
SELECT "dance" FROM "highest_and_lowest_scoring_performances" WHERE "highest_score"<30 AND "best_dancer_s"='stacy keibler';
## Task Generate a SQL query to answer the following question: `What is the Dance with the Highest score under 30 and Stacy Keibler as the Best dancer(s)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer_s" text, "highest_score" real, "worst_dancer_s" text, "lowest_score" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Dance with the Highest score under 30 and Stacy Keibler as the Best dancer(s)?`: ```sql
SELECT MIN("highest_score") FROM "highest_and_lowest_scoring_performances" WHERE "dance"='quickstep' AND "lowest_score"<16;
## Task Generate a SQL query to answer the following question: `What is the lowest of the Highest score for the Quickstep Dance and the Lowest score under 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer_s" text, "highest_score" real, "worst_dancer_s" text, "lowest_score" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest of the Highest score for the Quickstep Dance and the Lowest score under 16?`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='ufc 67';
## Task Generate a SQL query to answer the following question: `What is his record at ufc 67?` ### 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 `What is his record at ufc 67?`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='ufc 115';
## Task Generate a SQL query to answer the following question: `What is his record at ufc 115?` ### 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 `What is his record at ufc 115?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "attendance"='40,070';
## Task Generate a SQL query to answer the following question: `Which opponent had an attendance of 40,070?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Which opponent had an attendance of 40,070?`: ```sql
SELECT "result" FROM "schedule" WHERE "week">2 AND "date"='december 27, 2004';
## Task Generate a SQL query to answer the following question: `What's the result for the game held on December 27, 2004 with a week greater than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the result for the game held on December 27, 2004 with a week greater than 2?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "week"=6;
## Task Generate a SQL query to answer the following question: `Who was the opponent for week 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent for week 6?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "result"='w 24-14';
## Task Generate a SQL query to answer the following question: `Which opponent had the result of W 24-14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Which opponent had the result of W 24-14?`: ```sql
SELECT "attendance" FROM "schedule" WHERE "date"='january 2, 2005';
## Task Generate a SQL query to answer the following question: `What's the attendance for the game held on January 2, 2005?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the attendance for the game held on January 2, 2005?`: ```sql
SELECT "result" FROM "exhibition_schedule" WHERE "attendance">'33,435';
## Task Generate a SQL query to answer the following question: `Which had an attendance of larger than 33,435?` ### 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 `Which had an attendance of larger than 33,435?`: ```sql
SELECT "team" FROM "coaching_changes" WHERE "result"='lost' AND "interim_head_coach"='dewayne walker';
## Task Generate a SQL query to answer the following question: `Which team lost under interim head coach, Dewayne Walker?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "coaching_changes" ( "team" text, "bowl" text, "season_coach" text, "interim_head_coach" text, "result" text, "2008_head_coach" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team lost under interim head coach, Dewayne Walker?`: ```sql
SELECT "result" FROM "coaching_changes" WHERE "interim_head_coach"='gary darnell';
## Task Generate a SQL query to answer the following question: `What was the result under interim head coach, Gary Darnell?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "coaching_changes" ( "team" text, "bowl" text, "season_coach" text, "interim_head_coach" text, "result" text, "2008_head_coach" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result under interim head coach, Gary Darnell?`: ```sql
SELECT "result" FROM "coaching_changes" WHERE "2008_head_coach"='mike sherman';
## Task Generate a SQL query to answer the following question: `What was the result in 2008 under head coach Mike Sherman?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "coaching_changes" ( "team" text, "bowl" text, "season_coach" text, "interim_head_coach" text, "result" text, "2008_head_coach" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result in 2008 under head coach Mike Sherman?`: ```sql
SELECT "team" FROM "coaching_changes" WHERE "bowl"='humanitarian';
## Task Generate a SQL query to answer the following question: `What team has a bowl of humanitarian?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "coaching_changes" ( "team" text, "bowl" text, "season_coach" text, "interim_head_coach" text, "result" text, "2008_head_coach" text ); ### SQL Given the database schema, here is the SQL query that answers `What team has a bowl of humanitarian?`: ```sql
SELECT "result" FROM "coaching_changes" WHERE "season_coach"='rich rodriguez';
## Task Generate a SQL query to answer the following question: `What is the result under the season coach Rich Rodriguez?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "coaching_changes" ( "team" text, "bowl" text, "season_coach" text, "interim_head_coach" text, "result" text, "2008_head_coach" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result under the season coach Rich Rodriguez?`: ```sql
SELECT "2008_head_coach" FROM "coaching_changes" WHERE "team"='ucla';
## Task Generate a SQL query to answer the following question: `Who is the 2008 head coach of UCLA?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "coaching_changes" ( "team" text, "bowl" text, "season_coach" text, "interim_head_coach" text, "result" text, "2008_head_coach" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the 2008 head coach of UCLA?`: ```sql
SELECT "score" FROM "challengers_and_futures_17" WHERE "opponent_in_the_final"='marcos daniel';
## Task Generate a SQL query to answer the following question: `In what score did the match against Marcos Daniel end?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "challengers_and_futures_17" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `In what score did the match against Marcos Daniel end?`: ```sql
SELECT "score" FROM "challengers_and_futures_17" WHERE "surface"='clay' AND "date"='june 6, 2005';
## Task Generate a SQL query to answer the following question: `What was the score of the game played on a clay surface on June 6, 2005?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "challengers_and_futures_17" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the game played on a clay surface on June 6, 2005?`: ```sql
SELECT "date" FROM "challengers_and_futures_17" WHERE "surface"='clay' AND "opponent_in_the_final"='flavio cipolla';
## Task Generate a SQL query to answer the following question: `On what date did the match against Flavio Cipolla, played on a clay surface, occur?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "challengers_and_futures_17" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date did the match against Flavio Cipolla, played on a clay surface, occur?`: ```sql
SELECT "home_team" FROM "round_6" WHERE "home_team_score"='15.8 (98)';
## Task Generate a SQL query to answer the following question: `Which home team had a home team score of 15.8 (98)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_6" ( "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 had a home team score of 15.8 (98)?`: ```sql
SELECT "home_team_score" FROM "round_6" WHERE "home_team"='fitzroy';
## Task Generate a SQL query to answer the following question: `What was Fitzroy'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_6" ( "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 home team?`: ```sql
SELECT "home_team" FROM "round_6" WHERE "away_team_score"='11.18 (84)';
## Task Generate a SQL query to answer the following question: `Who was the home team when the away team had a score of 11.18 (84)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_6" ( "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 away team had a score of 11.18 (84)?`: ```sql
SELECT "venue" FROM "round_7" WHERE "away_team"='hawthorn';
## Task Generate a SQL query to answer the following question: `Where was the Hawthorn game played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_7" ( "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 Hawthorn game played?`: ```sql
SELECT "away_team_score" FROM "round_7" WHERE "venue"='princes park';
## Task Generate a SQL query to answer the following question: `What was the away teams score at Princes Park?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_7" ( "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 teams score at Princes Park?`: ```sql
SELECT "rider" FROM "1971_isle_of_man_sidecar_750cc_tt_final_" WHERE "speed"='81.91mph';
## Task Generate a SQL query to answer the following question: `Which Rider finished with a speed of 81.91mph?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1971_isle_of_man_sidecar_750cc_tt_final_" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Rider finished with a speed of 81.91mph?`: ```sql
SELECT "rider" FROM "1971_isle_of_man_sidecar_750cc_tt_final_" WHERE "speed"='80.18mph';
## Task Generate a SQL query to answer the following question: `Which Rider finished with a speed of 80.18mph?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1971_isle_of_man_sidecar_750cc_tt_final_" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Rider finished with a speed of 80.18mph?`: ```sql
SELECT "home_team_score" FROM "round_13" WHERE "venue"='princes park';
## Task Generate a SQL query to answer the following question: `What is the home team's score at princes park?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_13" ( "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 at princes park?`: ```sql
SELECT MAX("crowd") FROM "round_13" WHERE "home_team_score"='16.16 (112)';
## Task Generate a SQL query to answer the following question: `What is the largest crowd when the home team scores 16.16 (112)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_13" ( "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 the home team scores 16.16 (112)?`: ```sql
SELECT "venue" FROM "round_5" WHERE "home_team"='footscray';
## Task Generate a SQL query to answer the following question: `What is the venue for the Footscray home team?` ### 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 venue for the Footscray home team?`: ```sql
SELECT "home_team" FROM "round_5" WHERE "venue"='windy hill';
## Task Generate a SQL query to answer the following question: `Which home team's venue is Windy Hill?` ### 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 `Which home team's venue is Windy Hill?`: ```sql
SELECT "away_team_score" FROM "round_5" WHERE "away_team"='hawthorn';
## Task Generate a SQL query to answer the following question: `What is the score for Hawthorn as an away team?` ### 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 score for Hawthorn as an away team?`: ```sql
SELECT "away_team_score" FROM "round_5" WHERE "home_team"='essendon';
## Task Generate a SQL query to answer the following question: `What is the score of the away team 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_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 score of the away team when the home team is Essendon?`: ```sql