output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT COUNT("form") FROM "united_states_irs_forms_990_for_competit" WHERE "pages"<18;
## Task Generate a SQL query to answer the following question: `How many forms have less than 18 pages?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_irs_forms_990_for_competit" ( "organization_name" text, "state" text, "year" real, "total_assets" text, "form" real, "pages" real ); ### SQL Given the database schema, here is the SQL query that answers `How many forms have less than 18 pages?`: ```sql
SELECT SUM("form") FROM "united_states_irs_forms_990_for_competit" WHERE "pages">17 AND "total_assets"='$1,801,154';
## Task Generate a SQL query to answer the following question: `What is the sum of forms with greater than 17 pages and a total of $1,801,154?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_irs_forms_990_for_competit" ( "organization_name" text, "state" text, "year" real, "total_assets" text, "form" real, "pages" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of forms with greater than 17 pages and a total of $1,801,154?`: ```sql
SELECT "venue" FROM "round_2" WHERE "away_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `Which venue hosted South Melbourne?` ### 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 `Which venue hosted South Melbourne?`: ```sql
SELECT "away_team_score" FROM "round_2" WHERE "home_team"='richmond';
## Task Generate a SQL query to answer the following question: `What was the scored of the Away team that played against Richmond?` ### 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 scored of the Away team that played against Richmond?`: ```sql
SELECT "result" FROM "regular_season_schedule" WHERE "week"=6;
## Task Generate a SQL query to answer the following question: `What is the result week 6?` ### 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" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result week 6?`: ```sql
SELECT "goals" FROM "national_team_players_in_season_1946_47" WHERE "name"='sture mårtensson';
## Task Generate a SQL query to answer the following question: `How many goals did sture mårtensson score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_team_players_in_season_1946_47" ( "name" text, "pos" text, "caps" real, "goals" real, "club" text ); ### SQL Given the database schema, here is the SQL query that answers `How many goals did sture mårtensson score?`: ```sql
SELECT "goals" FROM "national_team_players_in_season_1946_47" WHERE "caps"=2 AND "club"='degerfors if';
## Task Generate a SQL query to answer the following question: `How many goals for the player with 2 caps at degerfors if?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_team_players_in_season_1946_47" ( "name" text, "pos" text, "caps" real, "goals" real, "club" text ); ### SQL Given the database schema, here is the SQL query that answers `How many goals for the player with 2 caps at degerfors if?`: ```sql
SELECT "catalog" FROM "release_history" WHERE "year">2000;
## Task Generate a SQL query to answer the following question: `What catalog came out after 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "year" real, "label" text, "format" text, "catalog" text ); ### SQL Given the database schema, here is the SQL query that answers `What catalog came out after 2000?`: ```sql
SELECT "player" FROM "r" WHERE "from"='1974';
## Task Generate a SQL query to answer the following question: `What is the name of the player who begin playing for the LA Lakers in 1974?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "r" ( "player" text, "nationality" text, "position" text, "from" text, "school_country" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the player who begin playing for the LA Lakers in 1974?`: ```sql
SELECT "attendance" FROM "game_by_game_results" WHERE "week"=7;
## Task Generate a SQL query to answer the following question: `What was the attendance on week 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_by_game_results" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance on week 7?`: ```sql
SELECT "opponent" FROM "game_by_game_results" WHERE "result"='bye' AND "week"<14;
## Task Generate a SQL query to answer the following question: `What opponent did they have a bye result against before week 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_by_game_results" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What opponent did they have a bye result against before week 14?`: ```sql
SELECT AVG("crowd") FROM "round_14" WHERE "home_team_score"='11.15 (81)';
## Task Generate a SQL query to answer the following question: `Which average crowd has a Home team score of 11.15 (81)?` ### 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 `Which average crowd has a Home team score of 11.15 (81)?`: ```sql
SELECT "home_team" FROM "round_14" WHERE "away_team"='fitzroy';
## Task Generate a SQL query to answer the following question: `Which home team has an Away team of fitzroy?` ### 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 `Which home team has an Away team of fitzroy?`: ```sql
SELECT "away_team" FROM "round_14" WHERE "away_team_score"='9.12 (66)';
## Task Generate a SQL query to answer the following question: `Which away team has a score of 9.12 (66)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_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 `Which away team has a score of 9.12 (66)?`: ```sql
SELECT "venue" FROM "round_9" WHERE "away_team_score"='10.10 (70)';
## Task Generate a SQL query to answer the following question: `At what venue did the away team score 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 `At what venue did the away team score 10.10 (70)?`: ```sql
SELECT "home_team_score" FROM "round_9" WHERE "home_team"='north melbourne';
## Task Generate a SQL query to answer the following question: `What was North Melbourne'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_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 was North Melbourne's score when they were the home team?`: ```sql
SELECT "home_team_score" FROM "round_9" WHERE "home_team"='richmond';
## Task Generate a SQL query to answer the following question: `What was Richmond'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_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 was Richmond's score as the home team?`: ```sql
SELECT "venue" FROM "round_9" WHERE "away_team"='essendon';
## Task Generate a SQL query to answer the following question: `What venue did Essendon play as the away 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 `What venue did Essendon play as the away team?`: ```sql
SELECT "away_team" FROM "round_13" WHERE "home_team"='richmond';
## Task Generate a SQL query to answer the following question: `Who was the opponent when Richmond played as the home team?` ### 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 `Who was the opponent when Richmond played as the home team?`: ```sql
SELECT "crowd" FROM "round_13" WHERE "venue"='kardinia park';
## Task Generate a SQL query to answer the following question: `What was the attendance at the Kardinia Park game?` ### 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 was the attendance at the Kardinia Park game?`: ```sql
SELECT "away_team_score" FROM "round_7" WHERE "home_team"='north melbourne';
## Task Generate a SQL query to answer the following question: `What was the score of the team North Melbourne played at Arden Street 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 was the score of the team North Melbourne played at Arden Street Oval?`: ```sql
SELECT "date" FROM "round_7" WHERE "venue"='arden street oval';
## Task Generate a SQL query to answer the following question: `What date did the game at Arden Street Oval take place?` ### 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 date did the game at Arden Street Oval take place?`: ```sql
SELECT "date" FROM "round_1" WHERE "crowd">'36,766';
## Task Generate a SQL query to answer the following question: `What is the date of the game with 36,766 fans?` ### 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 date of the game with 36,766 fans?`: ```sql
SELECT SUM("crowd") FROM "round_1" WHERE "away_team_score"='8.15 (63)';
## Task Generate a SQL query to answer the following question: `What is the crowd size of the game where the away team scored 8.15 (63)?` ### 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 crowd size of the game where the away team scored 8.15 (63)?`: ```sql
SELECT MIN("total") FROM "education" WHERE "institution"='higher secondary school' AND "aided">14;
## Task Generate a SQL query to answer the following question: `Which higher secondary school listing has the lowest total and an Aided amount larger than 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "education" ( "institution" text, "government" real, "aided" real, "unaided" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which higher secondary school listing has the lowest total and an Aided amount larger than 14?`: ```sql
SELECT "institution" FROM "education" WHERE "total"<13 AND "government"=1 AND "aided"=0;
## Task Generate a SQL query to answer the following question: `Which Institution has a Total smaller than 13, a Government amount of 1, and an Aided amount of 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "education" ( "institution" text, "government" real, "aided" real, "unaided" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Institution has a Total smaller than 13, a Government amount of 1, and an Aided amount of 0?`: ```sql
SELECT "iata" FROM "references" WHERE "country"='china' AND "icao"='zspd';
## Task Generate a SQL query to answer the following question: `Which IATA is associated with China and an ICAO of ZSPD?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `Which IATA is associated with China and an ICAO of ZSPD?`: ```sql
SELECT "airport" FROM "references" WHERE "city"='macau';
## Task Generate a SQL query to answer the following question: `Which airport is associated with Macau?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `Which airport is associated with Macau?`: ```sql
SELECT "iata" FROM "references" WHERE "city"='nanjing';
## Task Generate a SQL query to answer the following question: `What is the IATA for Nanjing?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the IATA for Nanjing?`: ```sql
SELECT "airport" FROM "references" WHERE "icao"='rckh';
## Task Generate a SQL query to answer the following question: `Which airport has an ICAO of RCKH?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `Which airport has an ICAO of RCKH?`: ```sql
SELECT "airport" FROM "references" WHERE "iata"='tyn';
## Task Generate a SQL query to answer the following question: `Which airport has an IATA of TYN?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `Which airport has an IATA of TYN?`: ```sql
SELECT "country" FROM "references" WHERE "airport"='shanghai pudong international airport';
## Task Generate a SQL query to answer the following question: `Which country contains the Shanghai Pudong International airport?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `Which country contains the Shanghai Pudong International airport?`: ```sql
SELECT "home_team_score" FROM "round_8" WHERE "home_team"='footscray';
## Task Generate a SQL query to answer the following question: `What was Footscray's score when it played as the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Footscray's score when it played as the home team?`: ```sql
SELECT "away_team_score" FROM "round_8" WHERE "away_team"='hawthorn';
## Task Generate a SQL query to answer the following question: `hat was Hawthorn's score as the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `hat was Hawthorn's score as the away team?`: ```sql
SELECT "outcome" FROM "singles_titles_16" WHERE "opponent_in_the_final"='carlos kirmayr';
## Task Generate a SQL query to answer the following question: `What was the Outcome against Opponent in the Final Carlos Kirmayr?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_titles_16" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Outcome against Opponent in the Final Carlos Kirmayr?`: ```sql
SELECT "score_in_the_final" FROM "singles_titles_16" WHERE "date"<1978 AND "opponent_in_the_final"='manuel orantes';
## Task Generate a SQL query to answer the following question: `What was the Score in the Final against Opponent in the Final Manuel Orantes, prior to 1978?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_titles_16" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Score in the Final against Opponent in the Final Manuel Orantes, prior to 1978?`: ```sql
SELECT "championship" FROM "singles_titles_16" WHERE "outcome"='runner-up' AND "surface"='clay' AND "opponent_in_the_final"='ivan lendl';
## Task Generate a SQL query to answer the following question: `Against Opponent in the Final Ivan Lendl, on a Surface of clay, with an Outcome of runner-up, where was the Championship?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_titles_16" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `Against Opponent in the Final Ivan Lendl, on a Surface of clay, with an Outcome of runner-up, where was the Championship?`: ```sql
SELECT MIN("date") FROM "singles_titles_16" WHERE "surface"='clay' AND "championship"='linz, austria';
## Task Generate a SQL query to answer the following question: `What is the earliest Date on a Surface of clay in a Championship in Linz, Austria?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_titles_16" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the earliest Date on a Surface of clay in a Championship in Linz, Austria?`: ```sql
SELECT "sportsperson" FROM "list_of_winners" WHERE "sport"='athletics';
## Task Generate a SQL query to answer the following question: `Who playes the sport of athletics?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_winners" ( "year" real, "sportsperson" text, "nation_of_birth" text, "team" text, "competition_federation_or_league" text, "sport" text ); ### SQL Given the database schema, here is the SQL query that answers `Who playes the sport of athletics?`: ```sql
SELECT "team" FROM "list_of_winners" WHERE "year"=2008;
## Task Generate a SQL query to answer the following question: `What team has a year listed of 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_winners" ( "year" real, "sportsperson" text, "nation_of_birth" text, "team" text, "competition_federation_or_league" text, "sport" text ); ### SQL Given the database schema, here is the SQL query that answers `What team has a year listed of 2008?`: ```sql
SELECT "venue" FROM "round_3" WHERE "away_team"='fitzroy';
## Task Generate a SQL query to answer the following question: `What venue was the game played in when the away team was fitzroy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What venue was the game played in when the away team was fitzroy?`: ```sql
SELECT COUNT("crowd") FROM "round_3" WHERE "away_team_score"='10.14 (74)';
## Task Generate a SQL query to answer the following question: `What is the number of people in the crowd when the away team scored 10.14 (74)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of people in the crowd when the away team scored 10.14 (74)?`: ```sql
SELECT "away_team_score" FROM "round_3" WHERE "home_team_score"='14.15 (99)';
## Task Generate a SQL query to answer the following question: `What did the away team score when the home team scored 14.15 (99)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What did the away team score when the home team scored 14.15 (99)?`: ```sql
SELECT "type" FROM "upcoming_films" WHERE "name"='sanctuary';
## Task Generate a SQL query to answer the following question: `What is the film type for the movie Sanctuary?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "upcoming_films" ( "name" text, "type" text, "planned_release" text, "cc_license" text, "sources_available" text, "open_source_movie" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the film type for the movie Sanctuary?`: ```sql
SELECT "type" FROM "upcoming_films" WHERE "cc_license"='by-nc-sa 2.5';
## Task Generate a SQL query to answer the following question: `What different types are there with a CC License of by-nc-sa 2.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "upcoming_films" ( "name" text, "type" text, "planned_release" text, "cc_license" text, "sources_available" text, "open_source_movie" text ); ### SQL Given the database schema, here is the SQL query that answers `What different types are there with a CC License of by-nc-sa 2.5?`: ```sql
SELECT "open_source_movie" FROM "upcoming_films" WHERE "planned_release"='2013';
## Task Generate a SQL query to answer the following question: `What are the open source movies with planned releases in 2013?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "upcoming_films" ( "name" text, "type" text, "planned_release" text, "cc_license" text, "sources_available" text, "open_source_movie" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the open source movies with planned releases in 2013?`: ```sql
SELECT MIN("rank_by_average") FROM "average_chart" WHERE "average"=23 AND "total"=115;
## Task Generate a SQL query to answer the following question: `What was the lowest rank by average of a couple who had an average of 23 and a total of 115?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_chart" ( "rank_by_average" real, "place" real, "couple" text, "total" real, "number_of_dances" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the lowest rank by average of a couple who had an average of 23 and a total of 115?`: ```sql
SELECT "colonized" FROM "naming_rules" WHERE "state"='michigan';
## Task Generate a SQL query to answer the following question: `What is the colonized date for Michigan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "naming_rules" ( "chapter" text, "colonized" text, "chartered" text, "school" text, "state" text, "status" text, "charter_range" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the colonized date for Michigan?`: ```sql
SELECT "colonized" FROM "naming_rules" WHERE "chartered"='1958';
## Task Generate a SQL query to answer the following question: `What is the colonized year for the chartered year 1958?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "naming_rules" ( "chapter" text, "colonized" text, "chartered" text, "school" text, "state" text, "status" text, "charter_range" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the colonized year for the chartered year 1958?`: ```sql
SELECT "colonized" FROM "naming_rules" WHERE "school"='shippensburg university';
## Task Generate a SQL query to answer the following question: `When was shippensburg university Colonized?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "naming_rules" ( "chapter" text, "colonized" text, "chartered" text, "school" text, "state" text, "status" text, "charter_range" text ); ### SQL Given the database schema, here is the SQL query that answers `When was shippensburg university Colonized?`: ```sql
SELECT "colonized" FROM "naming_rules" WHERE "charter_range"='n/a' AND "school"='appalachian state';
## Task Generate a SQL query to answer the following question: `What is the colonized date for the n/a charter range for appalachian state?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "naming_rules" ( "chapter" text, "colonized" text, "chartered" text, "school" text, "state" text, "status" text, "charter_range" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the colonized date for the n/a charter range for appalachian state?`: ```sql
SELECT "state" FROM "naming_rules" WHERE "status"='colony' AND "school"='shippensburg university';
## Task Generate a SQL query to answer the following question: `What state has colony as a status and shippensburg university as the school?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "naming_rules" ( "chapter" text, "colonized" text, "chartered" text, "school" text, "state" text, "status" text, "charter_range" text ); ### SQL Given the database schema, here is the SQL query that answers `What state has colony as a status and shippensburg university as the school?`: ```sql
SELECT "home_team" FROM "round_13" WHERE "home_team_score"='5.12 (42)';
## Task Generate a SQL query to answer the following question: `Which team has a Home Team score of 5.12 (42)?` ### 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 `Which team has a Home Team score of 5.12 (42)?`: ```sql
SELECT "home_team_score" FROM "round_13" WHERE "venue"='windy hill';
## Task Generate a SQL query to answer the following question: `What was the Home Team Score for the Windy Hill Venue?` ### 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 was the Home Team Score for the Windy Hill Venue?`: ```sql
SELECT "venue" FROM "round_13" WHERE "home_team"='essendon';
## Task Generate a SQL query to answer the following question: `What is the Essendon Home Team's venue?` ### 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 Essendon Home Team's venue?`: ```sql
SELECT "away_team" FROM "round_13" WHERE "away_team_score"='5.8 (38)';
## Task Generate a SQL query to answer the following question: `Which Away team has Away team score 5.8 (38)?` ### 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 `Which Away team has Away team score 5.8 (38)?`: ```sql
SELECT SUM("crowd") FROM "round_13" WHERE "away_team"='fitzroy';
## Task Generate a SQL query to answer the following question: `How large a crowd did the Fitzroy Away team draw?` ### 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 `How large a crowd did the Fitzroy Away team draw?`: ```sql
SELECT "position" FROM "nfl_draft" WHERE "player"='van waiters';
## Task Generate a SQL query to answer the following question: `What is Van Waiters position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Van Waiters position?`: ```sql
SELECT "capacity" FROM "see_also" WHERE "country"='usa' AND "city"='tucson';
## Task Generate a SQL query to answer the following question: `What is the capacity of the team in tucson, USA?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "rank" text, "stadium" text, "capacity" real, "city" text, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the capacity of the team in tucson, USA?`: ```sql
SELECT "podcast_date" FROM "season_1" WHERE "episode_number"=103;
## Task Generate a SQL query to answer the following question: `What is the date for the podcast episode number 103?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_1" ( "episode_number" real, "title" text, "podcast_date" text, "run_time" text, "historical_references" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date for the podcast episode number 103?`: ```sql
SELECT "title" FROM "season_1" WHERE "podcast_date"='november 21, 2004';
## Task Generate a SQL query to answer the following question: `What is the name of the podcast on November 21, 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_1" ( "episode_number" real, "title" text, "podcast_date" text, "run_time" text, "historical_references" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the podcast on November 21, 2004?`: ```sql
SELECT "school_country" FROM "d" WHERE "from"='1948';
## Task Generate a SQL query to answer the following question: `Which school added a player to the Lakers in 1948?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "d" ( "player" text, "nationality" text, "position" text, "from" text, "school_country" text ); ### SQL Given the database schema, here is the SQL query that answers `Which school added a player to the Lakers in 1948?`: ```sql
SELECT "school_country" FROM "d" WHERE "from"='1948';
## Task Generate a SQL query to answer the following question: `Which school added a player to the Lakers in 1948?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "d" ( "player" text, "nationality" text, "position" text, "from" text, "school_country" text ); ### SQL Given the database schema, here is the SQL query that answers `Which school added a player to the Lakers in 1948?`: ```sql
SELECT "tonnage" FROM "summary_of_raiding_history" WHERE "nationality"='great britain' AND "ship"='batna';
## Task Generate a SQL query to answer the following question: `What was the tonnage of the Great Britain ship Batna?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_raiding_history" ( "date" text, "ship" text, "nationality" text, "tonnage" real, "fate" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the tonnage of the Great Britain ship Batna?`: ```sql
SELECT MIN("silver") FROM "men_s_medal_table" WHERE "gold"=4 AND "total"=22;
## Task Generate a SQL query to answer the following question: `How many silver medals were won when there were 4 gold and 22 in total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men_s_medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many silver medals were won when there were 4 gold and 22 in total?`: ```sql
SELECT "car_num" FROM "race_results" WHERE "points"=130;
## Task Generate a SQL query to answer the following question: `What car number has 130 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_results" ( "driver" text, "car_num" real, "make" text, "points" real, "laps" real, "winnings" text ); ### SQL Given the database schema, here is the SQL query that answers `What car number has 130 points?`: ```sql
SELECT MIN("laps") FROM "race_results" WHERE "points">96 AND "car_num"<24 AND "driver"='ryan newman';
## Task Generate a SQL query to answer the following question: `What is the lowest number of laps for ryan newman with over 96 points, a cur number under 24,` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_results" ( "driver" text, "car_num" real, "make" text, "points" real, "laps" real, "winnings" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest number of laps for ryan newman with over 96 points, a cur number under 24,`: ```sql
SELECT SUM("car_num") FROM "race_results" WHERE "points"<126 AND "laps"=147;
## Task Generate a SQL query to answer the following question: `What is the sum of car numbers with less than 126 points and 147 laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_results" ( "driver" text, "car_num" real, "make" text, "points" real, "laps" real, "winnings" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of car numbers with less than 126 points and 147 laps?`: ```sql
SELECT COUNT("laps") FROM "race_results" WHERE "winnings"='$116,033' AND "car_num"<18;
## Task Generate a SQL query to answer the following question: `How many total laps for the driver with Winnings of $116,033, and a Car # smaller than 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_results" ( "driver" text, "car_num" real, "make" text, "points" real, "laps" real, "winnings" text ); ### SQL Given the database schema, here is the SQL query that answers `How many total laps for the driver with Winnings of $116,033, and a Car # smaller than 18?`: ```sql
SELECT "crowd" FROM "round_15" WHERE "home_team_score"='16.21 (117)';
## Task Generate a SQL query to answer the following question: `What was the crowd when the home team had a score of 16.21 (117)?` ### 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 crowd when the home team had a score of 16.21 (117)?`: ```sql
SELECT "home_team_score" FROM "round_15" WHERE "venue"='kardinia park';
## Task Generate a SQL query to answer the following question: `What was the home team's score at kardinia 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 `What was the home team's score at kardinia park?`: ```sql
SELECT "venue" FROM "round_15" WHERE "away_team"='melbourne';
## Task Generate a SQL query to answer the following question: `What is the venue when melbourne is the away 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 is the venue when melbourne is the away team?`: ```sql
SELECT MIN("crowd") FROM "round_4" WHERE "away_team"='footscray';
## Task Generate a SQL query to answer the following question: `What is the smallest crowd that Footscray had as the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest crowd that Footscray had as the away team?`: ```sql
SELECT "home_team" FROM "round_4" WHERE "home_team_score"='12.15 (87)';
## Task Generate a SQL query to answer the following question: `Which home team scored 12.15 (87)?` ### 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 `Which home team scored 12.15 (87)?`: ```sql
SELECT "city" FROM "first_and_second_rounds" WHERE "venue"='mackey arena';
## Task Generate a SQL query to answer the following question: `Where is the Mackey Arena located?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is the Mackey Arena located?`: ```sql
SELECT "state" FROM "first_and_second_rounds" WHERE "host"='university of california, los angeles';
## Task Generate a SQL query to answer the following question: `What state has the University of California, Los Angeles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text ); ### SQL Given the database schema, here is the SQL query that answers `What state has the University of California, Los Angeles?`: ```sql
SELECT "region" FROM "first_and_second_rounds" WHERE "state"='california' AND "host"='university of california, los angeles';
## Task Generate a SQL query to answer the following question: `What region does the University of California, Los Angeles play in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text ); ### SQL Given the database schema, here is the SQL query that answers `What region does the University of California, Los Angeles play in?`: ```sql
SELECT "venue" FROM "first_and_second_rounds" WHERE "state"='california' AND "city"='santa barbara';
## Task Generate a SQL query to answer the following question: `What venue is in Santa Barbara, California?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text ); ### SQL Given the database schema, here is the SQL query that answers `What venue is in Santa Barbara, California?`: ```sql
SELECT "venue" FROM "first_and_second_rounds" WHERE "state"='colorado';
## Task Generate a SQL query to answer the following question: `What Venue is in Colorado?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text ); ### SQL Given the database schema, here is the SQL query that answers `What Venue is in Colorado?`: ```sql
SELECT "city" FROM "first_and_second_rounds" WHERE "venue"='mackey arena';
## Task Generate a SQL query to answer the following question: `What city is Mackey Arena in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text ); ### SQL Given the database schema, here is the SQL query that answers `What city is Mackey Arena in?`: ```sql
SELECT COUNT("lane") FROM "semifinals" WHERE "heat"=1 AND "name"='david carry';
## Task Generate a SQL query to answer the following question: `What lane is David Carry in heat 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinals" ( "rank" real, "heat" real, "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 lane is David Carry in heat 1?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "week">9 AND "game_site"='rich stadium';
## Task Generate a SQL query to answer the following question: `Who is the opponent after week 9 at rich 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 `Who is the opponent after week 9 at rich stadium?`: ```sql
SELECT "attendance" FROM "schedule" WHERE "date"='1997-12-14';
## Task Generate a SQL query to answer the following question: `What was the attendance on 1997-12-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 `What was the attendance on 1997-12-14?`: ```sql
SELECT COUNT("week") FROM "schedule" WHERE "opponent"='minnesota vikings' AND "attendance"<'68,431';
## Task Generate a SQL query to answer the following question: `For the 1967 Cleveland Browns season what is the total number of times they played the Minnesota Vikings and had an atttendance smaller than 68,431?` ### 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 `For the 1967 Cleveland Browns season what is the total number of times they played the Minnesota Vikings and had an atttendance smaller than 68,431?`: ```sql
SELECT MIN("attendance") FROM "schedule" WHERE "week"<10 AND "date"='november 12, 1967';
## Task Generate a SQL query to answer the following question: `What is the lowest attendance for a game before 10 weeks on November 12, 1967` ### 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 lowest attendance for a game before 10 weeks on November 12, 1967`: ```sql
SELECT MIN("injured") FROM "2010" WHERE "place"='mayurbhanj, odisha' AND "killed"<1;
## Task Generate a SQL query to answer the following question: `What is the smallest number of injured in mayurbhanj, odisha and less than 1 killed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010" ( "incident_no" text, "date" text, "place" text, "killed" real, "injured" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest number of injured in mayurbhanj, odisha and less than 1 killed?`: ```sql
SELECT "venue" FROM "round_18" WHERE "crowd">'11,000' AND "away_team_score"='7.9 (51)';
## Task Generate a SQL query to answer the following question: `What is the Venue when the Crowd was larger than 11,000 and the Away team score was 7.9 (51)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Venue when the Crowd was larger than 11,000 and the Away team score was 7.9 (51)?`: ```sql
SELECT AVG("crowd") FROM "round_18" WHERE "away_team_score"='11.16 (82)';
## Task Generate a SQL query to answer the following question: `When the Away team had a score of 11.16 (82), what is the average Crowd?` ### 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 `When the Away team had a score of 11.16 (82), what is the average Crowd?`: ```sql
SELECT "away_team" FROM "round_18" WHERE "away_team_score"='6.17 (53)';
## Task Generate a SQL query to answer the following question: `Which Away team has a score of 6.17 (53)?` ### 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 `Which Away team has a score of 6.17 (53)?`: ```sql
SELECT "away_team" FROM "round_18" WHERE "home_team"='carlton';
## Task Generate a SQL query to answer the following question: `Which Away team has Carlton for it's Home 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 `Which Away team has Carlton for it's Home team?`: ```sql
SELECT "venue" FROM "round_18" WHERE "home_team"='footscray';
## Task Generate a SQL query to answer the following question: `Which Venue has Footscray as it's Home 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 `Which Venue has Footscray as it's Home team?`: ```sql
SELECT "home_team" FROM "round_9" WHERE "away_team"='richmond';
## Task Generate a SQL query to answer the following question: `What home team has Richmond listed as their Away 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 `What home team has Richmond listed as their Away team?`: ```sql
SELECT "away_team" FROM "round_9" WHERE "home_team_score"='15.17 (107)';
## Task Generate a SQL query to answer the following question: `What is the name of the away team that has the home team score of 15.17 (107)?` ### 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 name of the away team that has the home team score of 15.17 (107)?`: ```sql
SELECT SUM("crowd") FROM "round_9" WHERE "home_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `What is the number of the crowd for the home team of South Melbourne?` ### 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 number of the crowd for the home team of South Melbourne?`: ```sql
SELECT "away_team_score" FROM "round_9" WHERE "home_team"='footscray';
## Task Generate a SQL query to answer the following question: `What is the away team score for the home team listed as Footscray?` ### 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 score for the home team listed as Footscray?`: ```sql
SELECT "venue" FROM "round_13" WHERE "home_team_score"='11.20 (86)';
## Task Generate a SQL query to answer the following question: `In which venue did the home team score 11.20 (86)?` ### 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 `In which venue did the home team score 11.20 (86)?`: ```sql
SELECT "venue" FROM "round_13" WHERE "crowd">'33,642';
## Task Generate a SQL query to answer the following question: `Which venue exceeded a crowd size of 33,642?` ### 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 `Which venue exceeded a crowd size of 33,642?`: ```sql
SELECT "home_team" FROM "round_13" WHERE "home_team_score"='7.10 (52)';
## Task Generate a SQL query to answer the following question: `Which home team scored 7.10 (52)?` ### 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 `Which home team scored 7.10 (52)?`: ```sql
SELECT MAX("crowd") FROM "round_13" WHERE "home_team_score"='17.18 (120)';
## Task Generate a SQL query to answer the following question: `What is the largest crowd size that had a home team score of 17.18 (120)?` ### 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 size that had a home team score of 17.18 (120)?`: ```sql
SELECT "venue" FROM "round_13" WHERE "away_team_score"='9.11 (65)';
## Task Generate a SQL query to answer the following question: `In which venue did the away team score 9.11 (65)?` ### 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 `In which venue did the away team score 9.11 (65)?`: ```sql